The connection problem caused me a headache.
Luckily still a lot of bloggers are sharing their knowledge and saved my time.
- Make sure you've downloaded your key pair in the folder you're accessible.
- Use the following command to connect to your server
ssh -i keypair_name.pem username@hostname_or_ip
- Then you're ready to go!