Putty implementation of secret key login

Source: Internet
Author: User
Tags ssh

First of all, the principle:
Putty Login Server has the ability to save passwords, however, the password will inevitably be saved to encounter security problems, Putty provides a key-free login mechanism, that is, the generation of public and private keys, the public key on the server, the private key on the client, log in to verify that the server public key and the client's private key match to complete the login.
Specific practices:

Use Putty-gen to generate the key. Baidu downloads This software, opens, clicks Generate to generate the key, at this time needs the blank area uses the mouse to draw ceaselessly.

Save the key. When the build is complete, save the public key copy to the TXT file, click Save Private key to keep the private key, and note that the private key name cannot contain Chinese.

Saves the public key to the server. Log in with your account and establish a folder in the current directory. SSH, here is the specific command:
mkdir. SSH; cd. SSH; Touch Authorized_keys; VI Authorized_keys
Copy the public key to the Authorized_keys file and save the exit. The server public key setting is complete.

The private key is saved to the Putty client. Load need to login account, in the left column of the connection under the SSH, click the + number to expand SSH, you can see a auth, click to see the right side of the box to import the private key, to find the saved private key import can. Click Session to return to the home page, save. Save the login name. When the above steps are completed, the login will find that you need to enter the login name, and then you must set the login. Click on the left column connection under the data, in Auto-login username (Automatic login username) Enter the login name to save it.

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.