LoginSignup
0
0

More than 1 year has passed since last update.

【AWS】VPC〜EC2構築のエラー:ssh: connect to host ... : Operation timed out

Posted at

背景

VPC〜EC2構築後、SSHクライアントから接続を試みたところ下記のエラーが出てしまいハマる。

ssh: connect to host **.**.*.** port **: Operation timed out

様々な原因があるようですが、このエラーはRouteTableに原因があることが多いようです。

確認ポイント①

Routesに作成したインターネットゲートウェイ(igw-***)を追加しているか。
スクリーンショット 2021-12-04 17.04.07.png

確認ポイント②

Subnet associationsに作成したサブネットが追加されているか。
私はこれが設定されていなかったのでハマりました。
下記画像のEdit subnet associationsで追加することができます。
スクリーンショット 2021-12-04 17.07.15.png

まとめ

設定をし直したら、EC2の再起動を忘れずに。
それでもダメなら作り直しをおすすめします!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0