Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8037

Troubleshooting • Re: SSH refusing to work with SSL key and no password

$
0
0
This should be obvious but since you didn't mention it...

Have you generated a key pair on the Pi for the user you're trying to login as?
No. The key pair was generated on the client computer and works with other computers. It does not change between hosts.
And have you copied the public key from the user on the client into $HOME/.ssh/authorized_keys on the Pi?
I used the ssh-copy-id program to install the key on the Pi. I verified that the authorized_keys file was there and contained the public key.

I have also used chmod to set the .ssh folder and authorized_keys file to the correct permissions and so that only the owner pi has access. This is required by sshd.

Statistics: Posted by n4mwd — Tue May 20, 2025 3:57 am



Viewing all articles
Browse latest Browse all 8037

Trending Articles