I’ve recently reinstalled my HomeAssistant using HAOS, rather than my previous Supervisor install – mainly because the suppliers of HomeAssistant have desupported that method. However, I still want to be able to connect at the operating system level, rather than only relying on HomeAssistant WebUI for everything – and that means getting HAOS SSH mode working.
I initially attempted to follow the “USB Method” documented here:
However, it didn’t seem to want to work – even though the command appear to complete correctly. And I obviously couldn’t see if it was working, as I don’t have access to the operating system to check!
I eventually found an alternative approach here:
This lists the following steps (which I am repeating in case the source vanishes):
- Install the Advanced SSH & Web Terminal addon
- Add your ssh key(s) to the addons configuration.
- Disable addon Protection mode option
- Open addon Web UI and run the following:
cp /etc/ssh/authorized_keys /share
docker run -it --rm \
-v /root:/mnt/root \
-v /mnt/data/supervisor/share:/mnt/share \
bash cp /mnt/share/authorized_keys /mnt/root/.ssh
rm /share/authorized_keys
ha host reboot - HomeAssistant will now reboot (the final command told it to).
- That’s all. You should be able to access HAOS using ssh and the same keys on:
- Port 22 – addon
- Port 22222 – hassio host
