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