I have created a keypair for my ec2 instance. Downloaded it.
ssh-add /path/to/key.pem (which has correct permissions)
When I do ssh ubuntu@<ip> I get Permission denied (publickey) Any ideas?
Ok, so I have tried this quite a few times and I'm sure this is very trivial but: I am trying to SSH via command line on Ubuntu into my VM (Centos6) with an RSA key-pair I created using key-gen. I have created the key-pair and appended the public key to authorized_keys file and changed the permissions to 600.