SSH服务器拒绝了密码,xshell连不上虚拟机怎么办

SSH服务器拒绝了密码,xshell连不上虚拟机怎么办

SSH服务器拒绝了密码,xshell连不上虚拟机怎么办

应该是sshd的设置不允许root用户用密码远程登录

修改 vim /etc/ssh/sshd_config

找到# Authentication:
LoginGraceTime 120
PermitRootLogin without passwd
StrictModes yes

改成

# Authentication:
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes

重启虚拟机

相关文章:

  • 2021-08-01
  • 2020-10-26
  • 2021-11-05
  • 2022-12-23
  • 2021-08-28
  • 2021-06-23
猜你喜欢
  • 2021-05-10
  • 2021-11-20
  • 2021-11-28
  • 2021-11-18
  • 2021-06-05
相关资源
相似解决方案