Hello,
I am unable to do password less ssh in ubuntu 18.04. Here are the steps i followed.
1. Created user1 on 2 virtual servers.
2. Did ssh-keygen on server1 with user1. Copied it to server2 using shh-copy-id.
3. From server1 when i do ssh user1@server2
It asks for password. If i give password ssh is successful. (But i need password less)
4. Edited /etc/ssh/sshd_config file with root on server2 with below change
From #PubkeyAuthentication yes
To PubkeyAuthentication no
5. Restarted ssh
6. now When i do ssh user1@server2, I was asked to do enter password. Even though i give correct password, i get permission denied.
What do i need to do for password less ssh?
Bookmarks