By using AWS re:Post, you agree to the Terms of Use

SSH timeout AWS EC2


I do have an AWS EC2 and I'm unable to connect by SSH. Port 22 is open in the default AWS firewall (with my IP).

I keep getting: Operation timed out

I suspect that UFW or fail2ban block me.

Is there a console in the AWS Panels can let me connect to this instance? Or an another way to connect to be able to unban me?

Thank you.

3 Answers

I think your best option here would be to connect using AWS Systems Manager Session Manager.

Please see the documentation for details on how to connect using Session Manager:

answered 7 months ago
  • How to install SSM Agent when you cannot connect by ssh?

profile picture
answered 7 months ago


  • I try to connect from a different device and IP... Still get a "timeout".
  • I try to connect with "Serial Console", I upload a public key... But I get a "Permission denied" when I try to connect. Please note that I'm on Debian 10 so the "EC2 Instance connect" don't work.

Help please.

answered 7 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions