Question
Disable password, SSH works (Ubuntu)
Hi, I have created a new user (non-root) with SSH key. I can login using SSH key though Pageant. But when i remove my key from Pageant, I am also able to login through my password.
I have done the following in /etc/ssh/sshd_config:
PasswordAuthentication no
UsePAM no
Sudo reload ssh
What other settings am i missing out to prevent successful password logins?! Thank you!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
I was having the same issue. I did 2 things that which solved my problem (not sure which one did the trick)
sudo reboot
ssh-keygen -f /home/<user>/.ssh/known_hosts -R ip.ip.ip.ip