2
I’m using two Amazon EC2 classic micro instances (A & B) of same region in different availability zones. I’m trying to connect the instances using SSH. Every time while I’m trying to connect, it is showing the error:
connect to host 172.x.x.x port 22: Connection timed out.
I have given the SSH access in security groups to the instances (A & B).
I’m able to connect the instances (A & B) from different servers using SSH.
I have tried the following commands on both the instances(A & B):
Instance A:
ssh -i path-to-key.pem user@private-ip-of-B
ssh -i path-to-key.pem user@public-ip-of-B
Instance B:
ssh -i path-to-key.pem user@private-ip-of-A
ssh -i path-to-key.pem user@public-ip-of-A
Please let me know where I’m going wrong.
1Can you ping between hosts? – Linef4ult – 2015-09-21T07:37:53.393