I’m unable to login to the hassos host (rpi4) using SSH. I have already tried adding the ssh key but get this. If I connect HDMI and a keyboard I’m able to login without issue.
If you have enabled one of the SSH client add-ons. Your root will be changed to homeassistant or hassio. In your add-on, select the configuration tab and edit the username and password. You are still root.
I’m root inside the container upon connecting but using the “login” command to get to the hypervisor fails.
Have you tried the steps listed here Debugging the Home Assistant Operating System | Home Assistant Developer Docs
Yup, no luck.
Can you do a restart of your home assistant and then attempt to run a basic command. ls -liah
You should be automatically logged into the ssh, you shouldn’t need to use the login command. If your looking through the terminal screen on home assistant, you will be logged in, but if you were needing to physically access the raspberry Pi via HDMI, then you would need your login.
When using SSH I end up as root inside the docker container. To get to the host I need to run ‘login’. This works on the console (keyboard + hdmi) but fails consistently over SSH. The underlying problem I have is that HassOS keeps losing its virtual network interface configuration, forcing me to run nmcli any time I reboot. I assume this is because ‘/’ is a read-only filesystem. To do this I have to be able to access the host via SSH.
After awhile of messing with it I gave up and set HassOS up with just eth0 on the same vlan as the devices. I added a firewall rule to allow access to it.