Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

currently I have the following problem: i can connect to Server B via ssh only if I connect to Server A (via ssh), create socks proxy with putty, and use it in order to connect to server B.

So connection is MyPC->Server A->Server B. What i need is to be able to call from server B localhost:xx and forward it to MyPc:xx

With single tunnel it can be done via Putty by simply adding rule "R7869 localhost:7869" (and it's working for Server A which connection is being made directly), however if I'm trying to do the same on Server B (which is proxyfied) it's not working.

Any ideas?

Thx in advance.

EDIT: I have found solution to this problem. Instead of creating new network connection with putty to server B, i need to call "ssh -R 7869:localhost:7869 root@ServerB" from Server A .

share|improve this question
There is a good solution here… – Scott Jan 3 '13 at 22:33
up vote 3 down vote accepted

"What i need is to be able to call from server B localhost:xx and forward it to MyPc:xx"

First session to server_A:


Second session to server_B (via tunnel from first session): localhost:22000

 L8080 localhost:8080

The end effect is MyPC:8080 <->

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.