1 Answer
- Newest
- Most votes
- Most comments
2
Hello.
How about trying connecting using EC2 Instance Connect?
If the OS is compatible with EC2 Instance Connect, you can configure it and connect from the management console.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-methods.html
Alternatively, you may be able to use Systems Manager Session Manager.
This requires setting up an IAM role with the necessary IAM policy attached to EC2, but it can be accessed from the management console without using a key pair.
https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-prerequisites.html
Relevant content
- asked 2 years ago
- asked 2 years ago
- asked 7 months ago

Thanks, if I use the EC2 instance connect I get the following error message - Failed to connect to your instance Error establishing SSH connection to your instance. Try again later.
By the way, just to be sure, try changing the permissions of the key pair stored in MacOS using the command below.
When connecting with EC2 Instance Connect, you need to check whether the prerequisites listed in the following document are met. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-prerequisites.html