Key pair is not valid

0

Hi!

I have a problem launching a new EC2 instance with Ubuntu 22.04. The main problem is that when I create a new key pair, this download the ppk, but when I add the ppk to Putty, this fails because the ppk is not valid.

To connect via SSH I follow the way that I always used to connect to my other instances (also with ubuntu). Host "ubuntu@MYIP" port "22" Connection type "SSH" and in SSH>Auth I add the ppk file with the key pair

The weird thing is that when I add it to filezilla with the same conf, this work perfectly.

Someone had the same problem and knows how to solve it?

(I create 5 instances with 5 key pairs, and the problems was the same in all)

Thank u

demandé il y a 2 ans713 vues
2 réponses
0

First, ensure the keypair is correct and associated to the Instance. If correct, you can follow the steps on the documentation Connect to your Linux instance from Windows using PuTTY to connect to the Instance.

Note if the .ppk keypair is not working, retry creating a .pem key then Convert your private key using PuTTYgen to connect to the Instance

If the issue persists. Feel free to Contact AWS Premium Support

répondu il y a 2 ans
0

I briefly tested connecting to an AMI2 EC2 machine via Ubuntu on my laptop. I encountered a number of problems trying to connect with SSH. One was solved by ensuring the ssh key had rw or read only permission to the owher only (rw------- or r-------- permissions). I think it's an SSH v3 feature. The users home directory should also be tied down to the user only.

I'm not sure about AWS Ubuntu instances, but also make sure you connect to your cloud machine using the correct username.

Best of luck

répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions