After I did the extract, looked around, and deleted some files, I decided it was time
to do another backup. So I ssh'd to the other box and invoked the backup script.
I was rather rudely greeted with the following:
$ sh dump_database.sh
tar: Removing leading / from absolute path names in the archive
secretuser@othersite.org's password:
Needless to say I was confused. Umm, the whole point of the authorized_keys file
is to avoid the use of passwords. Now it wants a password.
My first guess was that the authorized key was wrong. So I made sure they were
the same. They were.
Then I did what I should have done in the first place. Yes, I checked the error
logs. That's the FIRST thing anyone should do when they encounter a problem. After
all, that's what the error logs are for. Here is what I found in /var/log/auth.log:
Apr 5 19:16:27 ducky sshd[31973]: RSA authentication refused
for secretuser: bad ownership or modes for
'/home/secretuser/'.
OH! Permissions. Well, dah. I changed them back and the authorized
keys problem went away. |