You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

SSH Permission denied (publickey,gssapi-keyex,gssapi-with-mic) when using PuTTYGEN key files.

Closed
1
Views
0
Comments
edited Jun 30, 2022 1:55PM in Linux

Using PuTTYgen ssh keys with the OpenSSH ssh command on a linux system fails with Permission denied errors because it uses a different format than OpenSSH keys.

Attempting to use .ppk keys generated using Puttygen to login interactively to a Linux instance via ssh fails with the following errors:

$ ssh -i deployment_key.txt [email protected]<IP_ADDRESS>

Enter passphrase for key 'deployment_key.txt':

Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

This occurs because Puttygen generated key files use a different format to what the ssh command on a linux system uses.

To fix this issue do the following steps:

  1. Download PuTTYgen from

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!