Currently Being ModeratedMay 30, 2012 1:52 AM (in response to PINSKO)
Post the output of the following command (on the server): sudo sshd -t
Currently Being ModeratedJun 7, 2012 12:19 PM (in response to Rowan_Crothers)
I had exactly similar problem.
i was getting this error:
ssh -vv eagle
OpenSSH_5.2p1, OpenSSL 0.9.8r 8 Feb 2011
debug1: Reading configuration data /etc/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to eagle [192.168.0.194] port 22.
debug1: Connection established.
debug1: identity file /Users/yerbol/.ssh/identity type -1
debug1: identity file /Users/yerbol/.ssh/id_rsa type -1
debug1: identity file /Users/yerbol/.ssh/id_dsa type -1
ssh_exchange_identification: Connection closed by remote host
but after trying your suggestion:
sudo sshd -t
/etc/sshd_config: line 112: Bad configuration option: ServerAliveInterval
/etc/sshd_config: terminating, 1 bad configuration options
this reminded me that i had set ServerAliveInterval 20 for avoiding timeout issues with ssh.
then i changed it back and it worked.