解决Debian 11服务器不能以root用户远程ssh登录(解决方案)
默认情况下将禁用Debian Linux上的root登录。解决Debian 11服务器不能以root用户远程ssh登录(解决方案)
·
默认情况下将禁用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.登录成功
更多推荐
已为社区贡献2条内容
所有评论(0)