Set Putty for automatic remote login on CentOS Server
1. Generate the public key and key
Verdana @ hostname :~ $ Ssh-keygen-t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/verdana/. ssh/id_rsa ):
Enter passphrase (empty for no passphrase ):
Enter same passphrase again:
Your identification has been saved in/home/verdana/. ssh/id_rsa.
Your public key has been saved in/home/verdana/. ssh/id_rsa.pub.
The key fingerprint is:
51: 51: da: 44: 28: b5: 83: de: d2: 1e: 60: 4f: 81: c9: f1: 1a firstname.lastname@example.org
Note: Leave passphrase empty.
2. Change the public key to authorized_keys.
Verdana @ hostname :~ /. Ssh $ mv id_rsa.pub authorized_keys
3. Download the private key and convert it to a recognizable format of Putty.
Putty cannot identify the private key generated by the Linux host, so you need to use puttygen.exe to convert it.
A) use FTP software or other methods to copy the generated id_rsa key to the client host. Here, my client is the Vista system.
B) Open puttygen.exe and click convert> Import key> Save key (for example, id_rsa.ppk) on the menu. The key is converted completely. No password protection is set here.
4. Set Putty
A) session, Host Name: yourname @ yourhost, yourname is your Linux host login name, yourhost is an IP address or remote host domain name
B) connection-> SSH-> Authentication-> browse, select the converted key (id_rsa.ppk), and save the session.