Learn Linux tips: SSH protocol

Source: Internet
Author: User
Tags ssh server asymmetric encryption

Learn Linux tips: SSH protocol
Text interface connection server: SSH Server

SSH (Secure Shell Protocol, Secure Shell Protocol), uses the data packet encryption technology to encrypt the data packets waiting for transmission before transmission to the network;

Two server functions are provided:

A remote connection like Telnet uses a Shell server, also known as SSH;

Similar to Sftp-Server of FTP service, Sftp-Server provides more secure FTP service;

 

Introduction to connection encryption technology

Asymmetric encryption technology: two Public and Private keys are used for encryption and decryption;

Public Key: provides data encryption for remote hosts. You can obtain your Public Key to encrypt data;

Private Key: The data encrypted by your public Key on the remote host can be decrypted locally. Because the private key is very important, it cannot flow out and can only be protected on its own host;

From the client perspective, you must obtain the public key of the server and then send your public key to the server, the obfuscation on the client is composed of the "Public Key of the server + private key of the client;

The SSH protocol has two versions. Due to the connection detection mechanism, Version2 can avoid malicious attack codes inserted during the connection;

The following figure shows the connection process between the SSH server and the client:

The client's key is randomly calculated from this connection, so this connection may be different from the next connection key;

In the client's ~. /Ssh/known_hosts records the Public Key of the host that has been connected, used to confirm that the host has been connected to the correct host;

 

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.