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

SSH timeout AWS EC2

1

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
2

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: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/session-manager.html

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

1
profile picture
EXPERT
answered 7 months ago
0

Hello,

  • 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