Gabriel Rosca wrote:

> Try this ... On your script ...
> 
> /usr/bin/rsync -avzh  -e "ssh -i /home/user/.ssh/auth-key"
> ch...@remotehost:/var/www/html /backup/html

You are correct about the -i switch.

Another possibility coming to me mind (if the machine the 
cronjob is running is not the local machine but remote per ssh): maybe 
chloe K is using Authentication forwarding (see the -A -a switches to 
ssh). If so, maybe the private key is only existing on the local 
machine but not on the machine the cronjob is running.

-- 
best regards,
markus

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Reply via email to