Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

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

Then

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

 
discard

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.