CentOS Create a password-free SSH (key)

Source: Internet
Author: User
Tags free ssh

1, enter the following command: ssh-keygen-t RSA

2, input command ls: produce two files: Id_rsa id_rsa.pub

3, copy id_rsa.pub, and named Authorized_key

CP ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys

4, the implementation of SSH localhost.

Validation success:

The authenticity of host ' localhost (:: 1) ' can ' t be established.
RSA key fingerprint is 07:07:8e:1c:c0:7e:7f:1f:ca:6a:e6:d3:cb:7f:b7:a1.
Are you sure your want to continue connecting (yes/no)? Yes
warning:permanently added ' localhost ' (RSA) to the list of known hosts.

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.