After creating a new instance, I am trying to access my instance like below:
ssh -i private_key.pem root@my_instance_public_domain
but the operation is timing out. I have updated the private key file permission using
chmod 400
and also edited default security group by adding a new in bound rule, selecting SSH and source Ip as 1.12.34.0/32
but getting port 22: Operation timed out
.
What I am missing.
1.23.34.0/32
? If not you have to modify the security group. You must also ensure that the instance is part of your security group1.23.34.0
must be your external ip address. Another problem (but unlikely problem if you use a provided AMI) may be that your instace has no ssh server running / has customized firewall rules.