![]() Local port forwarding is very useful while accessing the services hosted on a private network. ![]() Ssh -L 1234:farawayhost_IP:5678 this kind of implementation, all the data coming on “port 1234” of your machine will be forwarded to the “port 5678” on the farawayhost machine by remotehost machine (given that farawayhost allows the remote host to send data for port 5678). In the above example, “localhost” refers to the localhost IP of a remote machine.Īnother implementation of local port forwarding is the following: With the above command, all the data coming on “port 1234” of your machine will be encapsulated as SSH data and forwarded to “port 5678” of the remotehost. Ssh -L 1234:localhost:5678 this command, “-L” refers to the local side listening. Use the following command to set up the SSH tunnel between your machine and remote machine (given that you have SSH access to the remote machine): When you create an SSH tunnel with local port forwarding, the SSH tunnel forwards the data from the port on the client machine to the port on the server machine.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |