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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ