OpenSSH: Disable password based login, force public/private key based auth

Be sure to already have a working public/private key ssh login setup. Otherwise you’ll be locked out after activating this changes! Change the following config parameters in /etc/ssh/sshd_config to read as: ChallengeResponseAuthentication no PasswordAuthentication no UsePAM no Restart sshd. Have fun. Stay more secure. Is your SSHd listening on the default port Read more…