MacOS – SSH request timeout every time

macosNetworksshterminal

I am trying to access a storage space we have at work via ssh but I get a timeout every single time (Mac OS 10.7.5 – Terminal).

I checked firewalls, settings, even turned off Little Snitch, and port 22 is nowhere blocked. Doing the exact same request on a Windows machine with a SSH client works like a charm.

Request:

ssh login_name@server_address

Answer:

ssh: connect to host server_address port 22: Operation timed out

The problem seems to come from my company's vpn/proxy settings. Will update if I find a way around it.

Best Answer

3 commands may help you to track down this protocol failure:

ping server_address
traceroute server_address
ssh -v login_name@server_address

Please check that you are connecting to your targeted server with the right network interface. If you are using the infamous Automatic location you might be networking the wrong way (for example through the neighbour free wi-Fi when you thought you were using your company VPN).

If you suspect a legitimate or accidental filtering, you will be able to diagnose it with:

nmap -Pn -p22 server_address