sudo passwd rootvi /etc/ssh/sshd_config#注释PermitRootLogin yes#修改为 yesPubkeyAuthentication no#重启systemctl restart sshd.service