Hi I've never posted a question here but, I'm trying to access an AWS instance without entering a password with the following and having some issues.
$ ssh -i ~/.ssh/id_rsa_aws.pub ubuntu@ipaddresshere
However it's prompting me for a password even though the key I generated using the following and I left the password field blank when prompted.
$ ssh-keygen -t rsa -b 1024
When I access the server if I enter a blank field for the password I get permission denied if I enter a password it prompts me to re-enter a value, so I believe it accepts the blank password but denies the key.
I've stored the contents of
authorizedkeys2 and I believe all permissions are set correctly.
To do a bit more testing I used another key that I generated previously for another instance just called
id_rsa.pub and copied that to
authorizedkeys2 and can get in fine with that.
Permissions are the same for the keys.
Why is the key I'm generating not working if the other one is?
I've roughly followed the below link, only difference is using a different identity file than id_rsa.pub