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