vi /etc/ssh/sshd_configPermitRootLogin這行改成PermitRootLogin yesPasswordAuthentication no上面的no改成yesUsePAM yes上面的yes改成nossh