Linux ssh password-free login

Source: Internet
Author: User

generate public keys and keys on client side
Execute on client side command line

ssh-keygen-t-P‘‘

Then hit enter to generate both the public key and the key

Add the client's public key to the Server-side public key file for authentication
The steps are as follows:
1. Copy client-side public key to Server side

scp scp ~/.ssh/id_rsa.pub gino@172.16.60.134:~/.ssh/

2. Copy the public key contents into the new Authorized_keys file (This command is run on the Server side)

cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

Now use client side to connect Server side can login without password.

This article refers to:
Http://jingyan.baidu.com/article/60ccbceb02bd4264cab197b9.html

Add:
When SSH generates ID_RSA id_rsa.pub, the connection server is reported
Agent admitted failure to sign using the key
This error

Execute the command under the current user

ssh-add

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Linux ssh password-free login

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.