1)vi /etc/ssh/sshd_config,將PermitRootLogin的值改爲yes,並保存ssh
PermitRootLogin yes ide
2)service sshd restartrest