Linux ssh password-free login, ssh password login

Source: Internet
Author: User

Linux ssh password-free login, ssh password login

Generate public keys and keys on the client
Execute

Ssh-keygen-t rsa-p''

Press enter to generate both the public key and the key.

Add the public key of the client to the public key file of the Server for authentication.
The procedure is as follows:
1. Copy the client Public Key to the Server

Scp ~ /. Ssh/id_rsa.pub gino@172.16.60.134 :~ /. Ssh/

2. Copy the public key content to the new authorized_keys file (this command is run on the Server)

Cat ~ /. Ssh/id_rsa.pub> ~ /. Ssh/authorized_keys

Now you can use the client to connect to the Server without a password.

Reference:
Http://jingyan.baidu.com/article/60ccbceb02bd4264cab197b9.html

Supplement:
When id_rsa id_rsa.pub is generated by ssh, the connection to the server reports
Agent admitted failure to sign using the key
This error

Execute commands under the current user

Ssh-add

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.