Key-Pair to Bastion EC2 instance

0

How do I go about getting the .pem key pair on my bastion instance to be able to ssh to my instances on private subnet?

gefragt vor 2 Jahren856 Aufrufe
2 Antworten
2

Hello,

The .pem key is given to you when you create the key. If you lose the key, you may need to generate another key.

Please follow this documentation: How can I connect to my Amazon EC2 instance if I lost my SSH key pair after its initial launch?

profile pictureAWS
EXPERTE
Chris_G
beantwortet vor 2 Jahren
profile picture
EXPERTE
überprüft vor einem Monat
0

You can look into alternatives like EC2 Instance Connect and System manager. Below blogs provide a detailed information on each

  1. You can use AWS Systems Manager Session Manager to securely connect to your private instances in your virtual private cloud (VPC) without needing an intermediary bastion host, open ports, or a key pair assigned to the instances - Reference : https://aws.amazon.com/blogs/infrastructure-and-automation/toward-a-bastion-less-world/
  2. How you can improve the security of your existing bastion hosts by using Amazon Elastic Compute Cloud (Amazon EC2) Instance Connect - Reference : https://aws.amazon.com/blogs/infrastructure-and-automation/securing-your-bastion-hosts-with-amazon-ec2-instance-connect/
profile pictureAWS
EXPERTE
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen