[已解决]CentOS8下SSH连接Github卡住|报错debug1: expecting SSH2_MSG_KEX_ECDH_REPLY

文章目录[隐藏]

问题

使用SSH Key连接Github的时候出现卡住的情况,debug后看到如下信息:

解决方案

是加密模式不支持导致的,CentOS8移除了对旧的加密模式支持,因此需要手动开启。
在/etc/ssh/ssh_config中修改,文末添加一行:



Ciphers aes128-ctr,aes192-ctr,aes256-ctr

重试后成功连接:


This article is under CC BY-NC-SA 4.0 license.
Please quote the original link:https://www.liujason.com/article/533.html
comments powered by Disqus
Built with Hugo
Theme Stack designed by Jimmy