1. Use the Puttygen.exe tool in the Putty installation directory. Click "Build (Generate)" and then move the mouse until the progress bar fills up to generate the key
Public key part: Copy the upper section of the text Select all. (Do not click "Save Public Key"), it is useless to click the saved public key! )
Private key section: Click "Save private Key" to save a. ppk file.
Note: Do not add a password to the key file-add a password, each time you use the. ppk file you need to provide, it is a departure from the automatic login this purpose.
Automatic Login
Automatic authentication can be achieved by informing Linux and Putty of the public and private keys separately.
Public key file: Put it in a file in Linux.
Please log in to Linux with the Putty and password to enter the username. Use the command nano ~/.ssh/authorized_keys to edit the Authorized_keys file. -Usually this file does not exist, and the nano will open an empty file.
Glue the public key that you just copied down to the file. (Right-click in Putty is paste.) )
Private key file: Available to Putty.
Each time putty login, in the "Connect with SSH-and authentication" option, "Authentication private key File" Select just the. ppk file can be automatically logged in.
(English version: Connection, SSH---Auth, Private keyfile for authentication)
Putty Password-free automatic login Linux