T
T
Tolik2014-10-01 17:35:08
linux
Tolik, 2014-10-01 17:35:08

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

2 answer(s)
P
Power, 2014-10-02
@Diel

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.

S
Sergey Senkevich, 2014-10-01
@ssenkevich

habrahabr.ru/post/81607

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question