Debugging the Home Assistant SSH

Hi all,

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,

manu

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:

username: root
password: ""
authorized_keys:
  - >-
    ssh-ed25519
    AAAAC3NzaC1lZDI1NTE5ACCAIFLjJ3ld40th7P/C0yn3yHj4WMUKHCW25gbTm+hxBs6T
    holger@desktop ssh-ed25519
sftp: true
compatibility_mode: false
allow_agent_forwarding: false
allow_remote_port_forwarding: false
allow_tcp_forwarding: false

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”

As it says on that page you linked, that guide is for developers of Home Assistant, not end users. You should use the SSH add-on.