![]() ![]() For this simple example we're bypassing that by using the default port. ![]() If you're configuring multiple SSH tunnels or running other services on that machine using that port, you might need to pick alternative ports, in which case you'll have to reconfigure your RDP client to connect on the non-standard port. We're using the default port of 3389, so our RDP client can connect on the default port. We're using linrouter4's address in the local network, so that other machines in the local network will be able to access that tunnel. The IP address needs to be an address configured on an interface on the local host, of course, otherwise the host wouldn't be able to receive connections at that address. The first pair indicates the address and port where to receive connections on the local host. The tunnel is configured using the -L flag to SSH, which takes up to 4 addresses or ports separated by colon. Linrouter4$ ssh -L 192.168.10.4:3389:remote76.lan:3389 that SSH connection is established, from Windows machine workstation7 you can open an RDP connection to linrouter4 on the default port, and what you'll get is a forwarded connection to Windows machine remote76.lan on the remote host. So, in order to create an SSH tunnel that will allow you to connect to the remote Windows machine, this is what you need: ![]() Visualizing only the interconnect between the two Linux servers: Linux Server. Then these addresses for the remote network: Linux Server Windows PC Remote Let's use these addresses for the local network: Windows PC Local Linux Server. Otherwise, it's hard to understand which exact addresses and names go where. To understand how to set this up, let's assign some IP addresses and names to the machines and interfaces involved. (A reverse SSH tunnel would be if you wanted to expose a service from a machine in network A to machines in network B through this SSH connection initiated on the Linux server in network A.) You can actually accomplish this with a single SSH tunnel between the two Linux servers, more specifically from the one on Network A to the one on Network B (the direction in which it can SSH.)Īssuming you want to remote desktop into the Remote Windows machine (the one on the side of Network B), then you need a direct SSH tunnel. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |