zhangdajin

xshell连接服务器的时候报了如下的错

 

 新版的sshd可能与xshell存在兼容性问题

在/etc/ssh/sshd_config最后增加以下一行

KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1

然后systemctl reload sshd 或 systemctl restart sshd

就可以连接上服务器了

分类:

技术点:

相关文章:

  • 2021-12-05
  • 2021-07-14
  • 2021-06-29
  • 2021-12-01
  • 2021-10-05
  • 2021-06-09
  • 2021-05-07
猜你喜欢
  • 2021-12-01
  • 2021-11-15
  • 2021-11-05
  • 2021-10-12
  • 2021-11-21
  • 2021-11-19
  • 2021-07-16
相关资源
相似解决方案