Sunday, January 30, 2011

Linux : Establish connection through a proxy

To establish a trusted connection to a firewall protected server through a proxy machine, use the below command.

ssh -C -L 1521: dev@proxy-machine

In this example, we are connecting to a oracle server at running on port 1521 through a proxy machine "proxy-machine". "dev" is the username on the proxy machine.
It will ask for a password of the proxy machine and once provided, you will be able to connect.

This way, your machine need not be allowed on the firewall on the oracle server. But you will still be able to connect through another machine which is allowed on the firewall. (The proxy can be your friends machine as well)

No comments:

Post a Comment