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
已提问 9 个月前264 查看次数
3 回答
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
专家
已回答 9 个月前
profile picture
专家
已审核 9 个月前
profile pictureAWS
专家
iBehr
已审核 9 个月前
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
专家
已回答 9 个月前
profile picture
专家
已审核 9 个月前
  • 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
已回答 9 个月前

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

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

回答问题的准则