20170117 Old Boys Linux combat operations Training-ssh key password-free authentication distribution, management, backup actual combat 01

Source: Internet
Author: User

This section says the SSH

SSH manufacturing private and public keys


The private key is the key

The public key is a lock


Distribute the public key to each Linux server you want to log on to


#ssh-keygen-t DSA


Using this command will generate a pair of keys in this machine

Private key ID_DSA

Public Key Id_dsa.pub


Put the public key on the server you want to log on to

With the command


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


Put the public key on the server and start verifying it.

Command

#ssh [email protected]


In fact, you can also use other commands to log in as

#scp-p22-r/tmp/oldboy [email protected]


There is also a rsync which is a command also a service


There are also two tools Cfengine/puppet


Central distribution server is important because there are keys on it that can open all the servers

20170117 Old Boys Linux combat operations Training-ssh key password-free authentication distribution, management, backup actual combat 01

Related Article

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.