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.