Greetings

For example: there is a server 10.10.0.1 with an open port 3306 . On another local computer, there is a wonder program that can only connect to 127.0.0.1 and port 3306 .

Is there any possibility to connect to a remote server as a local host on the same port?

1 answer 1

If you understand correctly

remote host - 10.10.0.1天306

 ~$ ssh -L 3306:localhost:3306 user@10.10.0.1 

a tunnel will be forwarded, port 3306 is redirected and available locally.

Second option

host 10.10.0.1 is available for host with miracle prog

Log in to the wonderful host and link the ports:

 ~$ ssh -L 3306:10.10.0.1:3306 localhost