Setting up SSH in HA

I’ve tried setting up SSH in HA several times now, but I keep getting the same error message:
‘Corrupted MAC on input.
ssh_dispatch_run_fatal: Connection to 192.168.123.170 port 22: message authentication code incorrect’.

I hope someone can tell me what I’m doing wrong.

Thanks in advance.

It refers to hmac probably. Setup your connection with different sha (512 or so), or see if server side can accept different hmacs.

Thanks for your response. Could you explain this a bit more?

Are you using advanced ssh and web addon from within HA?

Are you ssh’ing from a windows machine? Try putty instead of the windows terminal.

Thanks for your reply, it works. But then I can’t access the configuration.yaml.

I had weird trouble connecting putty to Home Assistant once. The advice from the devs was to try the windows terminal, and that did indeed work. I’ve used Solar-Putty to manage my SSH sessions since then. The free version does display a small ad on the main session index page but not the terminal windows.

How do you launch windows terminal, from the run command using wt? It’s never worked for me.

IDK putty has always worked for me.

Which SSH add-on are you using and is it really providing the root account?

Advanced terminal, switching the user from root disables SFTP.

I’m using the same add-on. I can’t log in as root as I don’t know the password. I can log in as my SSH user though.

The user is what you entered on the config page of the addon? root was the default value and I just changed the password. I’ve never really needed it, I keep it running because I run the beta and sometimes i need to roll back.

Outside access is through vpn so I never really paid any mind to it. How can I tell if I am root. I don’t think I am because I believe that is only accessible from port 22222?

Yeah. I use my JetKVM for root access.