Linux2 machines can be logged on without a password

Source: Internet
Author: User
Linux2 machines can log on to the two machines with the following IP addresses without a password: 1. 10.207.27.2412. login to 10.207.27.241 without a password: 1. in...
Linux2 machines can be logged on without a password
The IP addresses of the two machines are as follows: 1. 10.207.27.2412, 10.207.27.242 www.2cto.com. log on to the 10.207.27.241 machine and log on to the ssh 10.207.27.242 machine without a password: 1. on the 10.207.27.241 machine, enter the command ssh-keygen-t rsa to generate a key pair: id_rsa (private key file) and id_rsa.pub (public key file ). It is stored in the/root/. ssh/directory by default.
Enter the public key 10.207.27.241/root /. add ssh/id_rsa.pub to/root/of the remote host 10.207.27.242 /. in the ssh/authorized_keys file, without the authorized_keys file, create the file www.2cto.com 3 first, log in to ssh 10.207.27.241 on ssh 10.207.27.242 or scp file name 10.207.27.242 :/.

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.