Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@thomasn
Created April 18, 2014 18:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save thomasn/11058161 to your computer and use it in GitHub Desktop.
Save thomasn/11058161 to your computer and use it in GitHub Desktop.
ssh error : SSH2_MSG_KEX_ECDH_REPLY

From some machines (with latest openssh) ssh to muddy fails - ssh -vvv -p $MUDDYPORT $MUDDYIP hangs at expecting SSH2_MSG_KEX_ECDH_REPLY

(Note: other workstations on the same network are fine).

  • ssh to bmfront01
  • cat /home/xavinsky/muddyip

Quick fix: $ sudo ip link set dev eth0 mtu 1250 $ ssh -p $MUDDYPORT $MUDDYIP ... thomasn@muddy:~$

Discussion: http://www.held.org.il/blog/2011/05/the-myterious-case-of-broken-ssh-client-connection-reset-by-peer/

Fix: Adjusting MTU - http://www.cyberciti.biz/faq/how-can-i-setup-the-mtu-for-my-network-interface/

$ ping -M do $MUDDYIP -s 1200 PING 81.155.215.123 (81.155.215.123) 1200(1228) bytes of data. 1208 bytes from 81.155.215.123: icmp_seq=1 ttl=50 time=46.1 ms 1208 bytes from 81.155.215.123: icmp_seq=2 ttl=50 time=46.5 ms

$ ping -M do $MUDDYIP -s 1500 ... From 10.10.10.31: icmp_seq=1 Frag needed and DF set (mtu = 1500) From 10.10.10.31: icmp_seq=1 Frag needed and DF set (mtu = 1500)^C

--- 81.155.215.123 ping statistics --- 0 packets transmitted, 0 received, +92331 errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment