disable ssh password login
$ sudo vi /etc/ssh/sshd_config
ChallengeResponseAuthentication no
PasswordAuthentication no
disable ssh password login
$ sudo vi /etc/ssh/sshd_config
ChallengeResponseAuthentication no
PasswordAuthentication no
how to disable password for ssh sudo users only
$ sudo vi /etc/ssh/sshd_config
#Disable password for users so they can only connect with keys
# At the end of the file
ChallengeResponseAuthentication no
Match User user1,user2,root
PasswordAuthentication no
Match Group data_user
PasswordAuthentication no
# To check syntax error in the file
$ sshd -t
# Restart the server
$ sudo systemctl restart ssh
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us