PuTTY Fata Error: No supported authentication methods available (server sent: publickey)

PuTTY Fata Error: No supported authentication methods available (server sent: publickey)

Error
PuTTY Fata Error: No supported authentication methods available (server sent: publickey)



Convert your private key using PuTTYgen

PuTTY does not natively support the private key format for SSH keys. PuTTY provides a tool named PuTTYgen, which converts keys to the required format for PuTTY. You must convert your private key (.pem file) into this format (.ppk file) as follows in order to connect to your instance using PuTTY.

To convert your private key

  1. From the Start menu, choose All ProgramsPuTTYPuTTYgen.

  2. Under Type of key to generate, choose RSA. If your version of PuTTYgen does not include this option, choose SSH-2 RSA.

    
							RSA key in PuTTYgen
  3. Choose Load. By default, PuTTYgen displays only files with the extension .ppk. To locate your .pem file, choose the option to display files of all types.

    
							Select all file types
  4. Select your .pem file for the key pair that you specified when you launched your instance and choose Open. PuTTYgen displays a notice that the .pem file was successfully imported. Choose OK.

  5. To save the key in the format that PuTTY can use, choose Save private key. PuTTYgen displays a warning about saving the key without a passphrase. Choose Yes.

    Note

    A passphrase on a private key is an extra layer of protection. Even if your private key is discovered, it can't be used without the passphrase. The downside to using a passphrase is that it makes automation harder because human intervention is needed to log on to an instance, or to copy files to an instance.

  6. Specify the same name for the key that you used for the key pair (for example, my-key-pair) and choose Save. PuTTY automatically adds the .ppk file extension.

Your private key is now in the correct format for use with PuTTY. You can now connect to your instance using PuTTY's SSH client.

(from AWS)
    • Related Articles

    • Microsoft remote desktop, error code 0x4

        Issue: Unable to connect: Your session ended because of an error. If this keeps happening, contact your network administrator for assistance. Error code 0x4 Correction: You will need connect in the Server (destination) Open regedit.exe Go ...