Load key myfirstkey ppk invalid format ec2-user 13 235 67 73 Permission denied publickey gssapi-keyex gssapi-with-mic

0 votes

Hi Guys

I am trying to do ssh in my AWS instance. But I am getting this error.

C:\Users\Akhtar\Downloads>ssh -l ec2-user 13.235.67.73 -i myfirstkey.ppk
The authenticity of host '13.235.67.73 (13.235.67.73)' can't be established.
ECDSA key fingerprint is SHA256:HtO4bkrMd+bieuGVGZ9SKAFxQn4lGQU270cs0hUQjpU.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '13.235.67.73' (ECDSA) to the list of known hosts.
Load key "myfirstkey.ppk": invalid format
ec2-user@13.235.67.73: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

Can anyone tell me why I am getting this error?

Jun 1, 2020 in AWS by akhtar
• 38,170 points
715 views

1 answer to this question.

0 votes

Hi@akhtar,

You are trying to do SSH with .ppk key. But .ppk key is used to login using putty. If you want to do SSH from command line, you have to use .pem key.

answered Jun 1, 2020 by MD
• 95,180 points

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer

bad permissions: ignore key: .ssh/my_private_key.pem Permission denied (publickey).

Hi@akhtar, In your error message it shows you ...READ MORE

answered Apr 28, 2020 in AWS by MD
• 95,180 points
1,699 views
0 votes
1 answer

Permission denied when I SSH access to EC2 instance

These are common reasons that can cause ...READ MORE

answered Mar 12, 2019 in AWS by Reema
607 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer