SSH application and VNC connection desktop

Source: Internet
Author: User
Tags ssh server asymmetric encryption

What is SSH?

SSH is a network protocol that is used to encrypt logins between computers. If a user logs on to another remote computer using the SSH protocol from the local computer, we can assume that the login is secure, and that the password will not be compromised even if intercepted in the middle. SSH guarantees security because it uses public-key cryptography.

Ssh

Grammar:

SSH hostname/IP (login with current user)

When I first connected to a host, the system will remind me, whether to record this host's public key fingerprint

Something specific to the target service

Connect to the specified remote user name

# ssh-l DJL 192.168.0.56

# SSH [email protected]

Record the location of the public key fingerprint of this host

Location of SSH configuration file, public key, private key

Delete Generate a new public key fingerprint

Connect again, the original public key fingerprint fails

Delete the original public key fingerprint

# RM-RF. ssh/*

If you want to open the remote graphical interface, the condition:

SSH client:

1, there are xservice

2. Turn on X11 forwarding

SSH server:

1, installation Xorg-x11-xauth

2, Xclient

See if the SSH server is installed Xorg-x11-xauth

# Rpm-qa | grep Xauth

Turn on X11 forwarding

# SSH 192.168.0.56-x

How SSH is validated

1. Password verification

2. Key Verification

Symmetric encryption:

Public

Private

Asymmetric Encryption:

Data encryption: Public key encryption, private key decryption

Digital signatures

hash function:

......

Generate a key pair

View

Private:

Id_rsa

Public:

Id_rsa.pub

Send Public key

# ssh-copy-id-i Id_rsa.pub [email protected]

To view the location where the public key is saved

No secret Login Implementation

Application of VNC

See if the VNC Toolkit is installed

# Yum List *vnc*

Installing the VNC Service

# yum Install Tigervnc-server.x86_64-y

Set Password

# Vncserver

Password Save location

# ls. vnc/

# vncserver-list

Modify the VNC password

#vncpasswd

Turn off desktop number 1th

# vncserver-kill:1

Turn on Desktop 3rd

# Vncserver:3

Zooming the desktop

If more than one person connects at the same time, be sure to open the shared connection

Synchronize the server desktop, there is no need to indicate the desktop on the client

# X0vncserver--PASSWORDFILE=.VNC/PASSWD

The experiment failed to solve

SSH application and VNC connection desktop

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.