Запрет входа по паролю в ssh

редачим конфиг /etc/ssh/sshd_conf
PasswordAuthentication no
ChallengeResponseAuthentication no