Enable VNC desktop and encrypted connection in Linux

Source: Internet
Author: User

 

System engineers work in the WINDOWS system and manage Linux servers. Opening SSH is a "pain" for novice administrators. Therefore, you need to use the graphical interface for remote management, taking into account the security model, encrypted connections are required. You can solve these two problems under VNC.

1. Server Configuration

1. open the terminal and enter "vncserver". The system prompts you to set the password for accessing vnc. The setting is completed after two confirmation. To change the VNC password, run the following command: "vncpasswd", 2. after that, the system will enter a field similar to "192.168.1.150: 1", which is the VNC access address;

Ii. Client

1. Enter 192.168.1.150: 1 on the VNCVIEWER browser and enter the password to connect to the VNC.

(In Linux, enter vncviewer 192.168.1.150: 1)

By default, the interface for X-WINDOWS is displayed. You need to configure the GNOME desktop to edit the xstartup file,

# Cd. vnc/

# Vi xstartup

Remove the "#" of the following two lines of configuration file

Unset SESSION_MANAGER

Exec/etc/X11/xinit/xinitrc

 

Extension:

1. Use SSH tunnel to encrypt VNC (in linux)

# Vncviewer-via root@192.168.1.150 localhost: 1; after connecting to a computer via SSH, use its local VNC connection

2. Use VNC screen Broadcast

(1). # x0nvcserver password =/root/. vnc/passwd

(2). Or use graphical Configuration

 

This article is from the "Mr. Jared Luo" blog

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.