No. The key pair was generated on the client computer and works with other computers. It does not change between hosts.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?
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.And have you copied the public key from the user on the client into $HOME/.ssh/authorized_keys on the Pi?
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