SSH password-free logon and SSH password-based Logon

Source: Internet
Author: User

SSH password-free logon and SSH password-based Logon
Machine A: 192.168.1.100 (production machine) machine B: 192.168.1.123 (Management machine) Requirement: log on to the production machine from the management machine without A password for Management 1. generate a public key/private key pair root @ B # ssh-keygen-t rsa-P 'key management password' under machine B. copy the generated id_rsa.pub to the root @ B # scp under host. ssh/id_rsa.pub Co., root@192.168.1.100:/root/id_rsa.pub 3. log on to machine A and input the copied id_rsa.pub file. root @ A # cd in the ssh/authorized_keys file. ssh/root @ A # touch authorized_keysroot @ A # chmod 600 authorized_keysroot @ A # cat/root/id_rsa.pub> authorized_keys 4. test to exit remote production machine Server A. log on to the management machine B through SSH to see if there is no password. Note: If the password entered when the key is generated in step 1 is blank, No Logon prompt is prompted. If the key management password is available, you need to enter the password for remote management. If you need to reverse, you can achieve password-free login, you can also use the same method and then perform the operation steps on another machine. The above section is just about implementing Remote Password-free login for linux. In windows, remote login via putty is not successfully tested. If the test is successful, please inform me of the method, thank you!

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.