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
Ubuntu安裝完後設置root密碼 http://www.linuxidc.com/Linux/2014-04/100489.htm
破解Linux系統root密碼 http://www.linuxidc.com/Linux/2014-04/100091.htm
RedHat Linux 5忘記root密碼後重置密碼 http://www.linuxidc.com/Linux/2014-02/97112.htm