When working behind a firewall, you can't create an SSH connection to the outside directly. In many cases, all traffic needs to go through an HTTP proxy. To avoid the "Network error: Connection timed out.", you need to configure the SSH connection over the HTTP proxy.
On Windows, you can configure tools like PuTTY as shown. On Linux, you need to use tools like Corkscrew and add the ProxyCommand to your SSH configuration. Corkscrew is not provided by default on LINUX. You need to download and install it on your LINUX machine. An example installation on Mac is shown as follows: ./configure --host=apple make install
Note that to install Corkscrew on Mac, you need to run the ./configure --host=apple command.
|
Host ggaws-proxy Hostname 52.201.225.75 User ec2-user ServerAliveInterval 120 UserKnownHostsFile ~/.ssh/know_hosts IdentityFile /user/GGCS/AWS-GG-Hub.pem ProxyCommand /user/bin/corkscrew www-proxy.company.com 80 %h %p