I created EC2 Ubuntu Instance, when the status check was clear, I tried following command.
chmod -400 key.pem
&
ssh -i key.pem ubuntu@ip_address
which gave following error
ssh: connect to host ip_address port 22: Connection refused
Then I tried rebooting the Instance but the error was still there.I tried
telnet ip_address 22
which gave me the same error
telnet: Unable to connect to remote host: Connection refused
I already follwed this and this following links but none worked:
Please tell me how do I resolve this.