Why Keypair is now being automatically downloaded upon creation?

0

Keypair generation on AWS Console previously asked if I wanted to download the new keypair generated. Recently it is automatically downloading without my autorization. Why? This is not secure. I am using Firefox browser. I also tried with Private Browser session and it is still downloading the new keypair without my authorization.

已提问 2 年前351 查看次数
3 回答
0

You have to understand the usecase of creating keypair in the console.

By creating keypair in the console, you already give the permission to download because otherwise you will NOT create one in the first place and you don't get to download it after creation.

You don't have access to your private keys anymore after creation. That's why it's auto downloading so you will have your private key.

If you don't want auto download, don't create the key in AWS console.

Jason_S
已回答 2 年前
  • No. I don't need to give permission to download. It didn't work like that before. In fact, using Safari browser I still receive the prompt to choose if I want to download. You are missing something important, I decide the action according to my use case. Can an EC2 run without keypair? No. Thank you.

  • An EC2 instance can run without a keypair. It's very common to create an EC2 instance without a key pair and use Simple System Manager (SSM) to access the console of the instance.

  • If you don't want to download the key just don't create it in the first place. If that's not feasible for you can you elaborate more as to what is your usecase?

0

If you don't download the private key, what use the public key is then? Meaning the default, and only sensible action is to download it. You can only download private at creation time, after that you can deploy the keypair to instance but there is no way of getting private key so it is kind of useless. Or am I missing something?

profile picture
专家
Kallu
已回答 2 年前
  • Seem that Jason_S beat me by 2 minutes :-)

  • It is being very useful. We can't run EC2 without keypair right? Such credentials should never be automatically downloaded. Need to keep the prompt.

0

I don't think the issue is to do with AWS. It is browser settings that's causing the issue in my opinion. Check the option "always ask you where to save files" under Downloads in the Firefox settings. This should start throwing the prompt you are looking for. If not the issue should be in similar lines. Tweak your browser settings till you get a prompt. A bit of Google search can help if my suggestion above doesn't resolve your problem. I think you also have options to specify for what file extension types you need a prompt. Check firefox support QnAs for more.

已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则