SSH Hassio

THANKS THAT IS A MASSIVE HELP.
When it says save to root in a authorised key file where does it mean in (/resin-boot)

It means put a file in the root of the directory

which is where

so the root folders directory

/resin-boot

It’s on the sdcard.

will I need to remove sd card to do this

The root of a directory is the location specified. In other words, don’t make another folder below it and don’t put it in a folder below that one. So the root directory of /resin-boot is literally /resin-boot

great Thank you

Yes. How else would you get to it? Plug it into another computer and modify what’s needed.

Thank you very much

is it just the public key

It should be just the public key.

I’m Getting
Permission denied (publickey).

When it says authorised keys file does it mean folder or just the public key

When it says authorised keys file does it mean folder or just the public key saved as authorised keys

In the root of that folder, you need to have a file called authorized_keys. Inside that file should be the one line with your public key in it. I don’t use hass.io(I played around with it months ago, but decided I preferred an Intel NUC running docker), so I say you need to refer to the documentation that HASSIO/resinos provides for ssh access. After all of this though, I don’t know what you are looking to accomplish.

thanks I’ve got it all sorted

1 Like

would you care to share how you managed? i have the same question.
Created all keys, renamed the public key to authorized_keys and think i copied it to the root of my Pi3 running Hassio.
.
That is, I uploaded it to /root which shows when sftp to [email protected] with my ssh credentials.
/resin-boot doesn’t show though, which should be the root to copy the file to. How can i copy a file there, if i cant see it first…?
cheers,
Marius

Remove SD card and plug in to computer open resin-boot there just drag ‘authorised_keys’ into it. Plug back into pi and as long as your private key is on your .ssh file of your computer it should work. Go to [email protected] -p 22222 make sure to use port 22222.
More info is here:

1 Like

thanks, just managed to do so. check Curl > json command for the other guideline @NotoriousBDG assisted on.
Once you know, it couldn’t be simpler…
Cheers,
Marius