以root權限執行
vi /etc/ssh/sshd_config
將
這一行的“#”去掉,修改為:
#PermitRootLogin yes
PermitRootLogin yes
重啟ssh服務 /etc/rc.d/init.d/sshd restart (root執行)