SSH settings password-free login

Source: Internet
Author: User

If:

Implementation---machine a confidential to the user "User1" identity. Free Password login B and c machine?

b machine and C machine establish user User1 and be able to ssh login.


A machine setting:

1. Install the SSH service. This slightly

2. #ssh - keygen - t RSA - P "'

Proactively generate ~/.ssh/id_rsa and ~/.ssh/id_rsa.pub two files.

b machine and C machine setup:

1. Install the SSH service. This slightly

2. Change/etc/ssh/sshd_config to find the configuration file for this SSH. Pubkeyauthentication Yes Open

3. Append the contents of the Id_rsa.pub file generated in a machine to the User1/.ssh/authorized_keys file of the B,c machine, which assumes that there is no manual self-build.


The above B and C machine settings can also be in a machine, such as the following operation:

ssh-copy-id-i ~/.ssh/id_rsa.pub [email protected] IP


Restart the sshd service.

A password-free login B machine:

SSH [email protected] machine ENTER.

C Machine ibid.


Related unsuccessful logs:/var/log/secure of B or C machine

Suppose to report this error: bad ownership or modes for File/home/songaimin/.ssh/authorized_keys please set this file permission to 755 to



SSH settings 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.