问题原文
原帖链接 · 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.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
