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. After I SCP'ed the private key to Ubuntu and tried to SSH using it and I always get:
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
I have tried this 3x already and no luck. I can ping it but I can't seem to figure out why it's not taking the key I made. Any suggestions?