I am struggling to get root SSH access to my home assistant following the guide below.
The only youtube videos I found were pretty old ( 2 - 3 years ) and seemed out of date i.e. the videos talked about Advanced Terminal ‘addon’ which I also tried but did not work.
I would be grateful if anyone can point me to a guide someone has followed, or can help .
tx,
Well, we don’t even know what issue you have, or what OS you’re using. So I talk simply about my setup: HA in the form of HAOS inside a VM. And I ssh to it from my Linux desktop.
I’m using the Addon “Advanced SSH & Web Terminal”. After I added it, I went it’s configuration and added the following:
Of course you need a different SSH key, just do “cat ~/.ssh/id_ed25519.pub”. If you don’t have one, use ssh-keygen (see “man ssh-keygen”) to create one.
And since I ssh to HA from my user account (not from root) and I’m not keen to always type “ssh [email protected]”, I added this to my ~/.ssh/config file, so that SSH adds “root” for me:
Host ha ha.local
user root
And if you have a weird terminal with a terminal type not known inside HA, then amend the above entry with this:
SetEnv TERM=rxvt-256color
And now I can just “ssh ha.local” or “scp somefile ha.local:/config”