Remote desktop settings: Use putty for vnc + ssh tunneling

Source: Internet
Author: User

If you directly use vncviewer for access, there are two disadvantages:
1. Password transmission is in plain text and can be easily listened.
2. the firewall needs to open port 59xx, which is impossible in the normal unit.
Fortunately, we have ssh, a powerful tool, like X11 Forwarding. We can use the ssh tunnel to protect the communication process. The following is a brief introduction.
Assume that the vncserver runs on screen 1 of myserver (IP Address: 192.168.x.x), that is, It listens for 192.168.x.x: 5901, and the user name is foo.
Scenario 1: The vnc client is linux
This situation is very simple. ssh suites are installed by default in general linux releases.

1. log on to the server using ssh
Ssh-L 5901: localhost: 5901-l foo myserver
Or directly use an IP address.
Ssh-L 5901: localhost: 5901-l foo 192.168.x.x

2. Run vncviewer (or other similar tools) on another terminal on the local machine)
Vncviewer localhost: 1
Scenario 2: The vnc client is windows

1. Download an ssh client, personal recommendations putty, only one program, do not need to install, simple and functional. Download http://www.chiark.greenend.org.uk here /~ Sgtatham/putty/download.html
Download putty.exe and run it directly on the desktop.

2. Run putty, enter the IP address of the server, and enter a name. Here, myserver is used as the session name, and save it by pressing save (see figure 1 ).
3. Click tunnels on the left of the dialog box to select related settings, enter 5901 in source port, enter localhost: 5901 in Destination, and press Add (see figure 2 ).
4. Click session on the left side, return to session settings, and press save to save the settings. Click open to log on to the server.
5. if no vnc-viewer is run, download [url] http://www.realvnc.com/download.html#/url#, just use an exefile). Enter localhost: 1 on the Server. After the password is entered, a linux Desktop appears in windows, and it is very safe.

Figure 1

Figure 2

For more information, see:
Remote desktop settings part1: How does VNCserver configure a process http://bbs.chinaunix.net/forum/viewtopic.php on Fedora? T = 368552 & highlight = yunqing


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.