首先须要查看是否装置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
首先须要查看是否装置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