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