Using VNC through SSH (vnc over SSH)

Source: Internet
Author: User
Tags tightvnc viewer
In addition to the Ssh,linux platform, you can access remote machines in a graphical way, the most popular of which is VNC

VNC connections, however, are not secure and are easily intercepted and monitored, so a safer way to use vnc,ssh security through an SSH tunnel is guaranteed.

Very simple, use SSH to do port forwarding

Terminal mode

$ ssh-l 5900:localhost:5900-n-F Sshserver_ip_or_name

Parameters

-L [Bind_address:]port:host:hostport forwards the specified port of the local host (SSH client) to the specified port on the remote host,-L 5900:localhost : 5900 Specifies that 5900 ports of any local interface are forwarded to the 5900 port of the remote localhost interface. VNC server's default starting port is 5900, then add the display number, if the VNC server on the No. 0 display monitor, its listening port for 5900+0 is 5900, if the monitor on the 1th display, its listening port is 5900 + 1 is 5901, and so on.

-N does not perform remote commands. This SSH connection is for port forwarding only.

-F to place ssh in background execution

Then use the VNC Viewer to connect to the local 5900 port

$vncviewer 127.0.0.1[:5900]

Graphic mode

ssvnc–enhanced TightVNC Viewer with Ssl/ssh Tunnel helper
SSVNC built-in SSL/SSH support for a secure VNC connection, see SSVNC official

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.