1.修改:
vim /etc/ssh/sshd_config
2.找到:
# Authenticaton
LoginGraceTime 120
PremitRootLogin without passwd
StrictModes yes
3.修改为:
# Authenticaton
LoginGraceTime 120
PremitRootLogin yes
StrictModes yes
4.然后重启ssh服务:
# /etc/init.d/ssh restart
1.修改:
vim /etc/ssh/sshd_config
2.找到:
# Authenticaton
LoginGraceTime 120
PremitRootLogin without passwd
StrictModes yes
3.修改为:
# Authenticaton
LoginGraceTime 120
PremitRootLogin yes
StrictModes yes
4.然后重启ssh服务:
# /etc/init.d/ssh restart