默认情况下将禁用Debian Linux上的root登录。
1.安装ssh服务
sudo apt install openssh-server
2.安装vim
apt-get install vim
3.用vim打开/etc/ssh/sshd_config
在如图位置追加如下
PermitRootLogin yes
PasswordAuthentication yes
4.重启ssh服务
/etc/init.d/ssh restart
5.登录成功