Putty Password-free login via SSH certificate linux__linux

Source: Internet
Author: User
Tags ssh centos centos server password protection

Earlier on how to use the Putty (SSH) login Management CentOS Server describes how to use putty to manage VPS, but Putty does not have the ability to save the password, but it can through the SSH certificate to achieve password-free logon.

The software we want to use is puttygen.exe, used to generate the SSH key

(Download Puttygen for download address: http://puttycn.googlecode.com/files/puttyfile_0.60cn2.zip)

Initial setup:

When the download is complete, we open Puttygen.exe, click on the button generate and move the mouse at random to produce random data in the blank space. Keep the parameters by default, click the button save private key, will remind "Are you sre your want to save this key without a passphrase to protect it?", can not need password protection, click Yes, you can.

Create. Ssh/authorized_keys:

Log in CentOS by Putty Password, create file Authorized_keys, and then vim ~/.ssh/authorized_keys the key that you just generated with the Puttygen.exe software (the public key shown) Approved by OpenSSH: The following content is copied and pasted into Authorized_keys file, save exit.

To set the putty implementation to log on with a certificate:

Putty→session: Fill in the host Name (Or IP address)

Putty→connection→date: Fill in the Auto-login username (Automatic login username)

Putty→connection→ssh→auth: Select the authenticated private key file in private key, file for authentication

To this location, your putty has been able to login to Linux without a password, but remember to take care of your key file.



Transferred from http://www.51rhca.com/archives/369

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.