Prohibit pasword authentication for sshdApril 3, 2025 · One min readMake sure PasswordAuthentication is no in config files cat /etc/ssh/sshd_config | grep -i passwordauthenticationPasswordAuthentication nocat /etc/ssh/sshd_config.d/50-cloud-init.conf | grep -i passwordauthenticationPasswordAuthentication no Restart sshd sudo systemctl restart sshd