For the sake of having security up to scratch on my LAMP server I generated ssh keys and tried to pair them with my server. Sadly it failed on server's side.
Here's the steps I followed:
ssh-keygen -t rsa
Entered out prompts for passphrase (these are optional) and I left them blank.
It successfully generated public and private keys.
Was prompted for root password. Entered, however I got error line saying "Permission denied. Try again".
I'm 100% sure about the password but still get this error and when I try to login into my server I get prompted for password and access is granted but not for keys ???
What can I do ? I can login into my server but can't pair ssh keys with my server.