SSH Password-free login

Source: Internet
Author: User

Lab environment: Two virtual machines A, B

To achieve the purpose: a machine landing B machine does not need to enter the password


Operate on a machine

ssh-keygen-t [RSA|DSA]-P '///Generate id_rsa,id_rsa.pub or id_dsa,id_dsa.pub under/root/.ssh

Copy the. pub file (public key) to the B machine

SCP ~/.ssh/id_rsa.pub [Email Protected]:/root/.ssh/authorized_keys


Modify the Authorized_keys permissions on the B machine

chmod ~/.ssh/authorized_keys


Now a machine can be implemented without password login B machine, to achieve AB mutual password-free, on B to perform the same operation

SSH 192.168.121.129


This article is from the "show Real Technology" blog, make sure to keep this source http://kaidy.blog.51cto.com/9318052/1775884

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.