paulhoek1
(Paul van Hoek)
December 28, 2020, 10:01pm
1
Hi,
I am running Home Assistant OS on an intel NUC.
Almost everything is working well…
I’m trying to login to homeassistant with SSH. Connect trough putty I can login with the set credentials in the ssh addon. I get this screen:
When I type ‘login’ to get core acces, the shell asks another login and password. What are those or how can I change them?
It’s not the same as the set password that I use to acces ssh. Also, root doesn’t work. It says: login incorrect. With other usernames I can type a password.
Thanks!
If you mean Host-Access you would have to ssh to port 22222. Also you would need authentication by key:
paulhoek1
(Paul van Hoek)
January 1, 2021, 6:45pm
3
Thanks! That did the trick.
majorgear
(Major Gear)
April 12, 2023, 3:26am
4
Nothing is listing on port 22222. I get “connection refused” so I think we’re missing a step.
aaddrick
(Aaddrick)
May 27, 2024, 2:15am
5
A year later, this happened to be the post I landed on that got me where I needed to be.
I generated my public and private keys for windows using these instructions: How to Create SSH Keys with PuTTY on Windows :: DigitalOcean Documentation
Open PuTTYgen
Press Generate
Wiggle your mouse
Type in your passphrase and confirm it
Press Save private key
Doesn’t matter what you save it as, just ensure it’s accessible and has the ppk extension
Select and copy everything in the key text box at the top after the message, Public key for pasting into OpenSSH authorized_keys file:
In Home Assistant >> Settings >> Addons >> Terminal & SSH >> Configuration >> Options
Paste your PUBLIC key into the Authorized Keys field
Press SAVE and do not restart yet
Doesn’t matter if you do accidentally
Further down to the Network section, enable Show disabled ports
Type in 22 into the SSH Port field
Press SAVE and restart when requested.
Open PuTTY
Set the Host Name to homeassistant.local
On the left menu tree, go to Connection >> SSH >> Auth >> Credentials
Under Private key file for authentication , press Browse and select the ppk file you saved in step 5
On the left menu, select Session
Under Saved Sessions , type HomeAssistant in the text box
Press the Save button to store your configuration for easy use later.
Press Open
Type in root when prompted for your login
Type in your passphrase from step 4 when prompted
You’re now logged in the Home Assistant OS with the same priveledges as before…
1 Like