First generate an ssh key on each machine and copy that to the other machine. I ran the following on both of them:
I then tried to do a remote login from server01 to server02. However, it is still prompting me for the password. It seems that "password-less login" is not working. The permissions for the .ssh directory and authorized_keys file is 700 and 600, respectively. These are the correct permissions.
Further investigation revealed that the home directory of the user that I use to generate the keys should have a drwxr-xr-x permission. Thus, after changing the attributes of the directory using
I was able to log in remotely without the password being asked.
0 comments:
Post a Comment