How can I access a remote machine via SSH from behind a proxy? I’m trying to connect to a Linux machine via SSH. The problem is that my Mac is in a different network, behind a proxy that routes HTTP and HTTPS through port 80.

How can I access the Linux machine via SSH from terminal?

Connecting with -vvv returns the following result:

OpenSSH_5.2p1, OpenSSL 0.9.8r 8 Feb 2011
debug1: Reading configuration data /etc/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to _example.com_ [_ip_address_] port 22.
debug1: connect to address _ip_address_ port 22: Connection refused
ssh: connect to host _example.com_ port 22: Connection refused
You may need tunneling technique for accessing an HTTP proxy using SSH tunneling check this link: http://kimmo.suominen.com/docs/proxy-through-ssh/