1)vi /etc/ssh/sshd_config,将PermitRootLogin的值改为yes,并保存ssh
PermitRootLogin yes ide
2)service sshd restartrest