Answer the question
In order to leave comments, you need to log in
How to make an ssh tunnel to forward the server's input port to me?
There is a Linux server. It has a dedicated IP, can receive connections on it to any ports. And I? I'm behind NAT. And what I need: to make a tunnel so that the server's input port (let's say 8080) is redirected to the same port (8080) only on my machine. Well, and accordingly, if my machine answers, then the server gives the same answer (i.e., it must be in both directions)
Answer the question
In order to leave comments, you need to log in
ssh -R "*:8080:localhost:8080" ...
But note that this may not be allowed on the server:
Well, keepalive is desirable to configure, as written in the above article.
And if you have windows, then you need similar magic with putty.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question