安装ssh-server sudo apt-get install openssh-server sudo nano /etc/ssh/sshd_config #注释: #PermitRootLogin prohibit-password 加一行: PermitRootLogin yes #重启 sudo service ssh restart