Rsync, SSH and authorized_keys problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi,

I'm trying to backup from one machine to the other (automatically via
cron) using rsync and ssh password-less public key authentication.

I having been trying to set this up following an article in a Linux
magazine[1] by only allowing the specific rsync command to run on the
remote box.

I am using the following rsync command:

$ rsync -avz -e "ssh -i ~/.ssh/backup-key" /backup
stewart@xxxxxxxxxxxxxxxxxxxxx:/backup

This runs, connects using keys asking for no password and completes
successfully until I add the above command to my authorized_keys file on
the remote box:

command="rsync -avz -e "ssh -i ~/.ssh/backup-key" /backup
stewart@xxxxxxxxxxxxxxxxxxxxx:/backup" ssh-dss ... key ...

The client then says it cannot find the key, so the connection fails.

Is it because it's trying to find the private key in the ~/.ssh
directory on the remote box?

Is the article wrong?

Or am I doing something wrong?

Should I use the $SSH_ORIGINAL_COMMAND variable?

Regards,
Stewart Williams






[1]
http://www.linuxformat.com/pdfs/download.php?PDF=LXF105.tut_backup.pdf
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux