- Newest
- Most votes
- Most comments
Does the EC2 instance have a public IP address? If you are trying to connect from the AWS console using EC2 instance connect and it doesn't have a public IP address you won't be able to connect to it. If there is no public IP address you should use AWS Session Manager which works without it, and make sure the instance role has the policy AmazonSSMManagedInstanceCore attached to it.
Hi hayao-k and kdambiec, Sorry for the delay in responding and Thanks for the suggestion and that will truly helps in someway for sure. Funny thing and it was legacy vm from 2012, someone has hard coded local IP in SSH Listen config and that is carry forwarded it in the image. That was the mistake and it is fixed now. Thanks for the help and support :)
Are you using password authentication?
Instances created from the AMI will automatically disable password authentication.
To work around this, set password authentication to yes in /etc/cloud/cloud.cfg
.
ssh_pwauth: 1
Relevant content
- asked 3 years ago
- asked 5 years ago
- Accepted Answerasked 10 months ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 3 years ago
fyi, i am able create and connect with new vm on the same subnet and security group without any problem. But that is not working from existing AMI backup. No idea what is wrong with the IMAGE and how to fix it. Please help me to correct if anything i need to change. Please let me know we you need console log.