Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 muhammad@man.softwarehouse.com -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 man.softwarehouse.com [111.111.111.111] 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
2  
Check the verbose logs on the ssh server. They will tell you what has gone wrong. –  Michael Hampton Mar 24 '13 at 15:30

1 Answer 1

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

 
discard

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.