SSH terminal login on core-ssh

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:

image

When I type ‘login’ to get core acces, the shell asks another login and password. What are those or how can I change them?

image

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:

Thanks! That did the trick.

Nothing is listing on port 22222. I get “connection refused” so I think we’re missing a step.

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

  1. Open PuTTYgen

  2. Press Generate

  3. Wiggle your mouse

  4. Type in your passphrase and confirm it

  5. Press Save private key

    • Doesn’t matter what you save it as, just ensure it’s accessible and has the ppk extension
  6. Select and copy everything in the key text box at the top after the message, Public key for pasting into OpenSSH authorized_keys file:

  7. In Home Assistant >> Settings >> Addons >> Terminal & SSH >> Configuration >> Options

  8. Paste your PUBLIC key into the Authorized Keys field

  9. Press SAVE and do not restart yet

    • Doesn’t matter if you do accidentally
  10. Further down to the Network section, enable Show disabled ports

  11. Type in 22 into the SSH Port field

  12. Press SAVE and restart when requested.

  13. Open PuTTY

  14. Set the Host Name to homeassistant.local

  15. On the left menu tree, go to Connection >> SSH >> Auth >> Credentials

  16. Under Private key file for authentication, press Browse and select the ppk file you saved in step 5

  17. On the left menu, select Session

  18. Under Saved Sessions, type HomeAssistant in the text box

  19. Press the Save button to store your configuration for easy use later.

  20. Press Open

  21. Type in root when prompted for your login

  22. 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