[root@linux ~]# ssh 192.168.0.10

Permission denied (publickey,password,keyboard-interactive).

 

修改ssh配置文件/etc/ssh/sshd_config

 

#LoginGraceTime 120

PermitRootLogin no

#StrictModes yes

把PermitRootLogin no 改为PermitRootLogin yes ,然后重启ssh服务。

service  sshd restart或 /etc/init.d/sshd restart