首先切换root
vi /etc/ssh/sshd_config
# Authentication:LoginGraceTime 120#PermitRootLogin without-passwordPermitRootLogin yesStrictModes yes
service ssh restart