mattia1010 mattia1010
Bookmark

SSH keys and login without password - is it possible?

Posted April 15th, 2020    1102   0  

Hello, may I connect to the seedbox with SSH keys and no password? I've managed to generate the keys and copy the public one in the folder .ssh/authorized_keys/, but when I try to login from my machine it keeps asking for the password. Any idea?

2 Replies

angoikon
angoikon
Staff

Hello!
"authorizedkeys" is a file not a directory, therefore you don't copy the public key (as a file) anywhere, you just add the contents of the public key file into "~/.ssh/authorizedkeys"

mattia1010
mattia1010

Thank you so much! I misread the "Copy and paste your idrsa.pub file into the file", and I thought that the right thing to do was to paste the idrsa file! :p.
Now it works like a charm! :)