ssh禁止密码登录 2019年10月29日 作者 zijieya 出于安全考虑,linux server应该用密钥方式登录。 需要禁止密码登录。 修改 sshd_config 然后重启sshd服务。 PasswordAuthentication no service sshd restart