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

已提問 2 年前檢視次數 713 次
2 個答案
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

已回答 2 年前
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

已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南