Best practice to SSH to multiple EC2 instances

0

What is the best way to manage sessions to multiple EC2 instances with dynamic IP addresses? I occasionally stop the instances and therefore, the IP changes. I don't want to have to update the IP every time I connect. Elastic IPs give a static IP, but there is a limit of 5 per account and doesn't seem like the right solution. How can I efficiently work on these instances daily (such as a SSH connection manager) without the hassle of constantly updating the IP addresses?

EP79932
posta 9 mesi fa264 visualizzazioni
3 Risposte
4

With EC2 Instance Connect Endpoint(EIC), this ask has been quite simpler, here is detailed step by step guide in this blog post. Definitely session manager is also an option.

profile pictureAWS
ESPERTO
con risposta 9 mesi fa
profile picture
ESPERTO
verificato 9 mesi fa
profile pictureAWS
ESPERTO
iBehr
verificato 9 mesi fa
2

Hello.
How about using Systems Manager's Session Manager instead of SSH?
If your OS can use Session Manager, you can use it by setting up an IAM role on EC2.
https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager.html

Other methods, such as EC2 Instance Connect Endpoint, make it possible to use EC2 without worrying about its public IP address.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/connect-with-ec2-instance-connect-endpoint.html

profile picture
ESPERTO
con risposta 9 mesi fa
profile picture
ESPERTO
verificato 9 mesi fa
  • Thanks...I'll look in to Session Manager. I basically want to be able to easily pop in and out of instances all day with the least amount of hassle.

  • Session Manager or EC2 Instance Connect Endpoint can be used to connect without worrying about IP addresses.

0
profile picture
con risposta 9 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande