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”
hi guys, I am using HA running directly off SD on RASPI. And the problem I was having was not being able to login to the HA gui - therefore unavbe to reboot. In his case the terminal / ssh addon does not help.
In my case I have RASPI running HA is in a remote location, in which case I consider it useful to be able to access via SSH the linux os - and at least reboot or have some kind of acess to attempt to get HA running again.
In anycase, I followed the above guide and actually it works - and now I am able to get SSH access from a remote location to the RAPI/HA.