SSH登陆故障:expected key exchange group packet form server (已解决)
目录
xshell 、 Navicat Premium、WinSCP、SecureCRT等软件登陆报 expected key exchange group packet form server。
解决方案:
查看 ssh配置:
/etc/ssh/sshd_config里面也开启了登陆认证
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
service sshd restart 也执行过了
/etc/selinux/config里面已经是SELINUX=disabled
最后查到是 需要 use libssh2, and libssh2 only support diffie-hellman key exchange method
/etc/ssh/sshd_config 最后面加条配置 然后重启sshd服务。
KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1
最后成功。