apt-get update apt install ssh nano /etc/ssh/sshd_config 去掉Port和PermitRootLogin的注释,并将PermitRootLogin prohibit-password修改为 PermitRootLogin yes