1. 改动文件: /etc/ssh/sshd_config
#PermitRootLogin yes
改动为:
PermitRootLogin no
2. 重新启动ssh进程
/etc/init.d/sshd restart Stopping sshd: [ OK ] Starting sshd: [ OK ]
TIPS:
# bash [root@hostname ~]# ls -lart