[CentOS] Rsync, SSH and authorized_keys problem
lists at pinkyboots.co.uk
Tue Jun 16 22:05:41 UTC 2009
Filipe Brandenburger wrote:
> On Tue, Jun 16, 2009 at 17:10, Filipe Brandenburger<filbranden at gmail.com> wrote:
>> On Tue, Jun 16, 2009 at 16:59, Stewart Williams<lists at pinkyboots.co.uk> wrote:
>>> command="rsync -avz -e "ssh -i ~/.ssh/backup-key" /backup
>>> stewart at name.of.remote.server:/backup" ssh-dss ... key ...
>> You actually have to include the command that rsync will call on the
>> server side, not the command you use to call rsync on the client
> If you add "-v" to the SSH command line on the client:
> $ rsync -avz -e "ssh -v -i ..."
> It will print something like this:
> debug1: Sending command: rsync --server -vlogDtprze.is . /backup
> That is the exact string you should add to command="" on the
> authorized_keys file on the other end.
Thank you Filipe, I will try this and let you know if it works.
More information about the CentOS