There's more...

If you still face this issue when connecting instances, there could be multiple reasons. The reasons can be as follows:

  • Local firewall rules
  • Routing policy of your network
  • Trying to connect with the wrong key pair

Get AWS Networking Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.