Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hey! Is it possible to use a SSH connection to tunnel incoming traffic to server1 to server2, so server1 acts like a proxy? Or is there a better way to do it? Cross-server connection should be encrypted.

share|improve this question
up vote 1 down vote accepted

yes you can do add this to ~/.ssh/config on the source machine.

Host host-name
Hostname host-name-or-ip
LocalForward 5900 destination:5900


ssh -v host-name

Now when you connect to port 5900 on the source machine you are connected to 5900 on the remote machine.

share|improve this answer

Or you could use -L or -R params from command line.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.