1.安装 open ssh: sudo apt-get install openssh-server
#sudo passwd root
sudo vi /etc/ssh/sshd_config 找到:PermitRootLogin prohibit-password 添加#禁用这一行 添加:PermitRootLogin yes systemctl start ssh systemctl enable ssh |
1.安装 open ssh: sudo apt-get install openssh-server
#sudo passwd root
sudo vi /etc/ssh/sshd_config 找到:PermitRootLogin prohibit-password 添加#禁用这一行 添加:PermitRootLogin yes systemctl start ssh systemctl enable ssh |
转载于:https://my.oschina.net/alex43211/blog/911090