SSH in a Locked-Down Network

Recently, during one job for a client, I needed to work for a length of time in a location that had quite severe network restrictions—in addition to a proxy server, the location blocked every port besides 80, 25, 443, and 8080. In order to use secure shell (SSH) to login to my work web server, I needed to use one of those ports (I used nmap to find open ports on my end).

Luckily, I gained access to another network for a short time, and used that connection to update my work web server to allow SSH over port 8080 (in addition to the standard, port 22). I edited the /etc/ssh/sshd_config file so it reads:

Port 22
Port 8080

(the Port 22 line was commented out, originally).

Then I simply used the -p (port) directive when logging in via SSH:

$ ssh -p8080 username@example.com

Comments

Hello,

PuTTY can make this too (my work computer is a Windows Pc ... I can not change this).
PuTTY can even accept a Proxy configuration with logon to the Proxy server.
Sometime it's very useful to bypass these kind of restriction.
;-)

Most definitely! I've never tried ssh from a Windows PC, but I'll keep this in mind if I ever need to do so.