大网数据广告活动
服务器运维问答

debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP

· 52CE 我爱测

I have two servers A and B. A and B can ssh into each other and other servers but cannot ssh into server C. All servers can ssh into A and B (including server C) The request hangs up at the following: debug1: SSH2_MSG_KEX_DH_GEX_…

问题原文

原帖链接 · Steve · CC BY-SA 3.0

I have two servers A and B. A and B can ssh into each other and other servers but cannot ssh into server C. All servers can ssh into A and B (including server C) The request hangs up at the following:

debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP

and eventually times out. If I do a netstat -a I see an established connection on server C and server A or B. When I tail the log on server C, I see a connection attempt but I never completes. I can ping as well as traceroute in both directions.

社区高分解答

原帖链接 · dgaavl · CC BY-SA 3.0

I've found same problem.

In my case:

  • Client SSH version: OpenSSH_6.7p1 Debian-5, OpenSSL 1.0.1k 8 Jan 201
  • Server SSH version: OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013

It seem's there is a problem related with this ssh server version because I use same client with a lot of different remote systems without any issue.

After a lot of tests playing with MTU values I finally found that the solution was to remove hmac-md5 from the list of MAC algorithms.

In /etc/ssh/ssh_config edit the next line:

#   MACs hmac-md5,hmac-sha1,[email omitted],hmac-ripemd160
MACs hmac-sha1

I hope this will help you.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2014-04-29)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。