- Newest
- Most votes
- Most comments
Hello.
Is it possible to connect with Systems Manager Session Manager instead of SSH?
You can use Session Manager if you have SSM Agent installed on EC2 and the appropriate IAM role configured.
https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager.html
Also, how about temporarily starting another EC2 from a snapshot etc. and changing the IP address of the domain's A record to that of the new EC2 to avoid the problem?
https://docs.aws.amazon.com/prescriptive-guidance/latest/backup-recovery/restore.html
Hello
The session manager works perfectly, but I need to fix this quickly because the website needs to be updated as soon as possible. Do you have any ideas?
Thx for your help !
Yes, i try this:
[cloudshell-user@ip-10-130-31-199 ~]$ aws ec2 authorize-security-group-ingress --group-id sg-08507c6752fb1d86a --protocol tcp --port 22 --cidr 0.0.0.0/0
An error occurred (InvalidPermission.Duplicate) when calling the AuthorizeSecurityGroupIngress operation: the specified rule "peer: 0.0.0.0/0, TCP, from port: 22, to port: 22, ALLOW" already exists
Same for the http
Relevant content
- asked 3 years ago
- asked 2 months ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated a year ago

Are HTTPS and SSH allowed in the security group's inbound rules? Also, try setting your network ACL to allow all communication with inbound and outbound rules. Once you have configured this, please check the logs of the web server in EC2 to see if any errors have occurred.
It seems that the security group has been set, so connect to EC2 using Session Manager, etc., and check the web server log and OS system log to see if any errors have occurred.
This may not be possible depending on the instance type you are using, but why not try connecting with the serial console? https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/connect-to-serial-console.html