Use Putty Connect to Server With Private key

From FedoraProject

Jump to: navigation, search
  1. Generate Private Key And Public key With Putty Key Generator
  2. create directory ".ssh" under the user's home directory
  3. create file "authorized_keys2" under the directory named ".ssh"
  4. edit file "authorized_keys2" with value "ssh-rsa "+public - key value + " rsa-key-20110608" (change "rsa-key-20110608" to your key's comments)
  5. change ".ssh" and "authorized_keys2" 's owner to target user
  6. change ".ssh" and "authorized_keys2" 's permission to 711
  7. set putty auth type with private key
  8. end