首先须要查看是否装置ssh,如果没有,输出以下命令装置

sudo apt-get install openssh-server

进入/etc/ssh/sshd_config文件

vi /etc/ssh/sshd_config

PermitRootLogin prohibit-password 改为 PermitRootLogin yes
而后重启ssh服务

/etc/init.d/ssh restart