Posted by ant
March 4th, 2008
Filed in Sysadmin

Today whilst trying to pack our Zope database I couldn’t connect to the server on the port I needed to because of a firewall issue. I went searching to see if I could tunnel into the server using an already open port.
I was unaware that you can forward ports if you have SSH access to the server, for example
ssh -L 3001:server.example.com:3000 -N user@server.example.com
would forward all local requests to port 3001 on the local machine to port 3000 on server.example.com. The traffic bound for the remote machine is encrypted and sent over port 22 like a normal SSH connection… Brilliant!
Blog uses Mephisto
Design from OSWD
by dreamLogic

Leave a Reply ☆