Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to connect to my work server using my macbook. in the morning it was working and now its not.

This is what im doing

ssh -vv -L 1024:bolton:3389

This is the verbose

OpenSSH_5.9p1, OpenSSL 0.9.8r 8 Feb 2011
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to [] port 22.
debug1: Connection established.
debug1: identity file /Users/muhammadnadat/.ssh/id_rsa type -1
debug1: identity file /Users/muhammadnadat/.ssh/id_rsa-cert type -1
debug1: identity file /Users/muhammadnadat/.ssh/id_dsa type -1
debug1: identity file /Users/muhammadnadat/.ssh/id_dsa-cert type -1
ssh_exchange_identification: Connection closed by remote host

Also when I can connect when im using my friends wifi !

share|improve this question
If it works in your friends network and doesn't in yours, is most likely an problem of your network. Do you have any barriers (firewall/proxies) in your network? or in the host configuration? – RSFalcon7 Mar 24 '13 at 15:13
Check the verbose logs on the ssh server. They will tell you what has gone wrong. – Michael Hampton Mar 24 '13 at 15:30
up vote 0 down vote accepted

Using TCP Wrappers for access control can cause the vague message above.

Check the contents of your /etc/hosts.allow and /etc/hosts.deny to ensure you are not blocking SSH.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.