• 安装

apt-get install openssh-server

  • 配置

sudo gedit /etc/ssh/sshd_config

PermitRootLogin without-password 改为 PermitRootLogin yes

  • 重启

sudo /etc/init.d/ssh restart