May be i have forgot something because I am using AWS after a long time, i am sorry if i am making some stupid mistake.Here is what i am doind:
- I launched Amazon Linux AMI(ami-fdb8229e).
- Added ssh port (22) for my ip address to the inbound rules in the associated security group.
- Changed the permissions of identification file to 400.
- When i try to connect to instance using "ssh -vvv -i "Firstsetup.pem" email@example.com" i am getting output
OpenSSH_7.2p2 Ubuntu-4ubuntu2.1, OpenSSL 1.0.2g 1 Mar 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: resolving "ec2-52-221-218-255.ap-southeast-1.compute.amazonaws.com" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to ec2-52-221-218-255.ap-southeast-1.compute.amazonaws.com [220.127.116.11] port 22.
debug1: connect to address 18.104.22.168 port 22: Connection timed out
ssh: connect to host ec2-52-221-218-255.ap-southeast-1.compute.amazonaws.com port 22: Connection timed out