This discussion started in November 2013. I'm just now reading this in November 2014 because I started to experience the exact same symptoms as "impossibleplanet". I really must applaud "impossibleplanet". Despite snarky, nearly useless responses from "etresoft" he remained persistent and resolved the issue. Unfortunately, it took him and his co-workers seven(!) months, from November 2013 to May 2014.
For me, I've followed the recommendation from "impossibleplanet" but my problems persist.
It should be noted that I successfully SSHed from the same client (Mac OS) to the same server (Cent OS 6.5) nearly every day for many months. It just suddenly stopped working a few days ago. Once it stopped working, I tried from a different network, and was successful. So, it works from one network but not the other. When it fails, I get a password prompt followed by a "Authenticated" message (in debug mode), but the session just hangs after that (I never get logged-in).
The following is my ~/.ssh/config file:
TCPKeepAlive yes
ServerAliveInterval 5
ProxyCommand nc %h %p
My client machine is Mac OS 10.9.5, which includes the following ssh/openssh:
$ssh -V
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
This is the version of OpenSSH that comes pre-installed on Mac OS 10.9.5. Should I upgrade it?
For reference, here is that portion of my SSH session AFTER successfully entering a valid password (I've replaced my IP address with XX.XX.XX.XX)
Authenticated to [XX.XX.XX.XX]:22.
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug2: callback start
debug2: fd 3 setting TCP_NODELAY
debug3: packet_set_tos: set IP_TOS 0x10
debug2: client_session2_setup: id 0
debug2: channel 0: request pty-req confirm 1
debug1: Sending environment.
debug3: Ignored env TERM_PROGRAM
debug3: Ignored env TERM
debug3: Ignored env SHELL
debug3: Ignored env TMPDIR
debug3: Ignored env Apple_PubSub_Socket_Render
debug3: Ignored env USER
debug3: Ignored env COMMAND_MODE
debug3: Ignored env SSH_AUTH_SOCK
debug3: Ignored env __CF_USER_TEXT_ENCODING
debug3: Ignored env __CHECKFIX1436934
debug3: Ignored env PATH
debug3: Ignored env PWD
debug1: Sending env LANG = en_US.UTF-8
debug2: channel 0: request env confirm 0
debug3: Ignored env SHLVL
debug3: Ignored env COLORFGBG
debug3: Ignored env HOME
debug3: Ignored env LOGNAME
debug3: Ignored env SECURITYSESSIONID
debug3: Ignored env _
debug2: channel 0: request shell confirm 1
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
After the last line, it just hangs for a minute or two, and then times-out.
Any help is greatly appreciated!