vi /etc/ssh/sshd_config PermitRootLogin yes 把这行的注释取消掉 UseDNS no GSSAPIAuthentication no systemctl restart sshd