最近安装了一台麒麟系统学习,然后正常配置SSH发现无法远程

网上百度后发现是要修改一个ssh的配置文件,记录一下

 

一、更新或者安装ssh

yum -y install openssh

二、编辑配置文件,删除最后的【kex开头的】一串字符,然后重新将这句复制进去

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

 

vi /etc/ssh/sshd_config

末尾插入

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

Xshell远程SSH报错:服务器发送了一个意外的数据包。RECEIVED:3,EXPECTED:20

 

 三、保存后,重启服务,再次连接即可

systemctl restart sshd

 

相关文章:

  • 2022-12-23
  • 2021-05-02
  • 2021-11-29
  • 2021-08-22
  • 2021-09-07
  • 2021-12-19
  • 2021-06-04
猜你喜欢
  • 2021-11-20
  • 2021-06-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2022-12-23
  • 2021-11-21
相关资源
相似解决方案