SSH Login without password

Source: Internet
Author: User
Tags ssh access

"0" written in front since SSH implements a password-free login, the approximate steps are:
      • 0.1) client login to server via SSH;
    • 0.2) server examines the. ssh file under the home directory and sends the public key file Authorized_keys to the client;
    • 0.3) The client side receives the server side public key file, uses its own private key file to parse it, and calculates the new public key file C;
    • 0.4) Server segment receives the client's public key file C and matches it with its own public key file (it has its own matching algorithm, which you don't care about), and if the match succeeds, the client logs on to the server successfully;
    • (Attention): see here, have to say that the middle process of establishing SSH password-free login is indeed very complex, so SSH access to the configuration file is very demanding. such as friends you, not according to the access rights of this article to set the corresponding, so that the end can not establish password-free landing, the consequences of self-esteem (here just to emphasize that SSH access to the configuration file requirements are very strict!) (The experience of the experienced, just your profile access rights are not exactly correct, SSH has not been able to achieve normal password-free landing, burning energy)
"1" Install SSH
server installation :sudo yum -y install openssh.i686client installation: sudo yum -y install openssh-clients
"2" My task: Hadoop at Hadoop0 (Client) password-free login to Hadoop at Hadoop1 (Server)
    • 2.1) Generate private key and public key (client operation) that requires SSH

      • Attention)
    • A1) ~/.ssh/directory must be 700 of the right!
    • A2) one thing to pay special attention to is the Id_rsa file access! He must be-RW-------! Otherwise in the future of the key alignment process, may be judged to be dangerous and can not be successful with the public key into the file mechanism to achieve online oh. (however, by default, the files are set up to meet the above requirements)

    • 2.2) set up the. SSH folder on the server's home directory, with access permissions set to (server action)

    • 2.3) Upload the client's public key file data to the server (client operation)

    • 2.4) Change the public key file name under the. SSH folder of the server to Authorized_keys, and change the access permission to 644 (server operation)

    • 2.5) Client password-free login to server

Http://www.cnblogs.com/pacoson/p/4820940.html

SSH login without password (turn)

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.