I am creating a script to automate local msyqldump, rsync backup and restore functions for use with my dreamhost websites. For that reason, I’ve activated passwordless ssh, via public/private keys.
It’s working on every user I’ve got, except one. In other words, I can do ‘ssh-copy-id firstname.lastname@example.org’. It asks me for a password, which it accepts.
Then, as ‘ssh-copy-id’ suggests, I try ‘ssh email@example.com’ and end up having to still use the password.
I tried erasing the line at ~/.ssh/authorized_keys on myhostbox responsible for authorization and re-applied ssd-copy-id, to no affect.
At one point I even deleted all the files at ~/ (except of course logs) and had to recreate .bash_profile, .bashrc, etc. I then tried resinstalling the public key via ssh-copy-id and it still doesn’t work.
So I cannot cron my local script to automatically and remotely ssh in to mysqldump or rsync my files for this user. This is not happening with any of my other users or accounts, so I’m puzzled. I’d be grateful for any suggestions or clues as to why this could happen and how to fix it.