Installa la nostra toolbar!
Tips / Linux
addthis
SSH tunnel
Author: Katrame
Visits: 1619
Date: 22.08.2007

This tips is to show how simple is to connect remotely a machine in a remote network:
We suppose to have:
- host A (our local machine: 127.0.0.1)
- host B (the server who provide tunnelling: our.domain.com)
- host C (the machine where we will to connect to: 10.1.1.1)

and here the command:

ssh -L 127.0.0.1:11811:10.1.1.1:80 username@our.domain.com
on our machine wi do the above command that is explained as:

"ssh"
we are using ssh no?


"-L 127.0.0.1:11811:10.1.1.1:80"
"-L [bind_address:]port:host:hostport"

Specifies that the given port on the local (client) host is to be forwarded to the given host and port on the remote side.

"username@our.domain.com"

Specifies username on remote host with which we will connect to


After that we will have open a ssh session to the machine that provide the forwarding, now we we can for example open a browser and point to this url:

"http://localhost:11811/"


and we will see the contents on remote machine.


Page 1 of 1


Se vuoi discutere con noi su questo articolo o comunque vuoi porci delle domande usa il nostro Forum

COMMENTI

Aggiungi un commento! +
(I commenti verranno moderati prima della pubblicazione)



Top