2.ssh key Login (SSH login without password)

Source: Internet
Author: User
Tags touch command

1. A host generates a key pairssh-keygen-t RSA2. The public key of host A is sent to Host BSCP id_rsa.pub Linux2:/cloud                                //SCP: is a command of the SSH protocol, remote replication3. Add a host's public key to the authorization list of Host B(1) General B host has just started and did not have this file, first and a as first created. SSH directoryssh-keygen-t RSA
(2) Add the Authorized_keys file to the. SSH directory, which holds the values of all public keysTouch Authorized_keys                                    //touch command to create a file, mkdir create a directory
(3) inAuthorized_keys Adding the value of the public keycat/cloud/id_rsa.pub >> Authorized_keys//Note >> add,> means replace
(4) changes requiredPermissions for Authorized_keyschmod Authorized_keys



From for notes (Wiz)

2.ssh key Login (SSH login without password)

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.