SzSec

问题1:Xshell连接不上虚拟机

#启动ssh服务
/etc/init.d/ssh start
#查看SSH服务22端口是否开启
netstat -antulp | grep ssh


问题2:XShell连接Linux提示ssh服务器拒绝了密码,请再试一次

原因:一般是设置了禁止root远程登录。

vim /etc/ssh/sshd_config

将下列配置

# Authentication:
LoginGraceTime 120
PermitRootLogin prohibit-password
StrictModes yes

修改为

# Authentication:
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes


参考:https://blog.csdn.net/fanren224/article/details/70862346 

分类:

技术点:

相关文章:

  • 2021-08-28
  • 2021-11-20
  • 2022-12-23
  • 2021-11-29
  • 2021-04-19
  • 2022-12-23
猜你喜欢
  • 2021-09-28
  • 2021-05-02
  • 2021-10-29
  • 2021-10-14
  • 2021-11-02
  • 2022-12-23
相关资源
相似解决方案