首页 > 技术文章 > SSH服务器拒绝了密码,请再试一次

zhyantao 2019-03-29 20:00 原文

安装openssh服务:

修改文件:

# vim /etc/ssh/sshd_config

修改如下:

LoginGraceTime 120
PermitRootLogin yes  #prohibit-password 无法使用root用户远程连接
StrictModes yes
MaxAuthTries 10

重启服务

# /etc/init.d/ssh restart

推荐阅读