1、报错如下

2、进入修改SSH设置
vi /etc/ssh/sshd_config

3、把PermitRootLogin without-password 改为 PermitRootLogin yes
StrictModes yes 也设为yes

4、重启一下SSH
/etc/init.d/ssh restart
5、如果走到这一步你发现你的配置并没有哪里错了那么我们就是道友了。。。
回到Xshell找到你的虚拟机右键进入’属性‘

6、把大写用户名改成小写,确定


7、连接上了。。。

时间:2026-02-12 23:38:29
1、报错如下

2、进入修改SSH设置
vi /etc/ssh/sshd_config

3、把PermitRootLogin without-password 改为 PermitRootLogin yes
StrictModes yes 也设为yes

4、重启一下SSH
/etc/init.d/ssh restart
5、如果走到这一步你发现你的配置并没有哪里错了那么我们就是道友了。。。
回到Xshell找到你的虚拟机右键进入’属性‘

6、把大写用户名改成小写,确定


7、连接上了。。。
