安装openssh服务:
修改文件:
# vim /etc/ssh/sshd_config
修改如下:
LoginGraceTime 120
PermitRootLogin yes #prohibit-password 无法使用root用户远程连接
StrictModes yes
MaxAuthTries 10
重启服务
# /etc/init.d/ssh restart
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