Hi there --
I have a key-based authentication set up for the root account between two of our servers, and it has been working without issue for quite some time. I wanted to set up a similar configuration for a 'regular' user account between the same two servers.
I went through the motion of running the ssh-keygen utility with the following syntax as the user in question:
I made sure there were no passphrases by hitting the <enter> key when prompted. Once that was done, I copied the newly created public key from the source to the destination computer using the command syntax shown below:
ssh user@remotehost “cat >> ~/.ssh/authorized_keys” < ~/.ssh/id_rsa.pub
Once that was done, I should have been able to log into the remote host without being prompted without a password, but that was not the case.
Why would the root account be able to log in using public/private key authentication, and a 'regular' user account cannot to the same?