Connecting LAN machines using SSH Tunnel

Source: Internet
Author: User

When you need a browser to open an IP address in the intranet, you can establish tunnel by putty, which I mentioned earlier;

You can also open the IP address of the intranet by installing the VNC viewer locally, logging in to the login node, and using the login node's browser.

Using SSH tunnel is the simplest way to always be.

Example:

Node1 has a public network IP, node2 only intranet ip;node1 and Node2 network connection;

We can only open the Node1 service on the browser, we may establish the SSH tunnel on the Node1, realizes the Node2 service through the Node1 public network IP and the port on the browser;

1,node2 's intranet IP is 10.0.0.189, we want to node1 IP, get node2 port is 80 service;

Login Node1, execute the following command, follow the prompts to enter the user name and password, keep the current terminal window open:

#ssh-L 80:10.0.0.189:80 10.0.0.189

2, in the browser open node2_ip:80/, you can see the Node1 80 port below the service;


Connecting LAN machines using SSH Tunnel

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.