Xshell connecting Linux remotely with a key

Source: Internet
Author: User

Xshell key connection to Linux

Tools New Key Management

Key type Select DSA or RSA is all Yes

RSA is an asymmetric encryption and decryption algorithm.

DSA is typically used for digital signatures and authentication.

RSA is named from the initials of the authors, Ron Rivest, Adi Shamir, and

Leonard adleman,who first published the algorithm.

Both RSA and DSA are non-symmetric encryption algorithms. The security of RSA is based on the decomposition of the very difficult large integer (the product of two primes);

DSA the security

is based on the problem of discrete logarithm of integer finite field. Basically, the RSA algorithm with the same key length can be considered to be equal to the DSA algorithm security.

The public key is used for encryption, it is made public to everyone, the private key is used for decryption, only the recipient of the cipher holds it.

Set Password

Save the public key

By the way, copy the public key.

Enter the Linux system under the user directory

mkdir. SSH

Touch Authorized_keys

Vim Authorized_keys

Then paste the key in to save

PS: Edit the document by pressing I edit the details of the problem or you will lose the beginning of the S

When you're done saving

Modify permissions and Authorized_keys permissions for the. SSH folder

chmod. SSH

chmod Authorized_keys

Getenforce then check the status of SELinux

Setenforce 0 temporarily close SELinux

Vim/etc/selinux/config Edit Config file

Will selinux=disable

iptables–f Firewall Empty

/etc/init.d/iptables Save config file

Done

Xshell connecting Linux remotely with a key

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.