how to copy my *!&^%# log files

Greg Rundlett greg at buzgate.org
Tue Jun 3 14:09:14 EDT 2003


I have spent a few days getting real familiar with RSA, and DSA public
key / private key authentication, a tool called KeyChain, plus OpenSSH
and all the attendant tools that come with it such as ssh-keygen and
ssh-agent.

I was able to create my key, sign it, use it to authenticate to a remote
host without using a password, etc.

I can now issue commands like 

/usr/bin/scp joe at example.com:/usr/home/joe/www_logs/* /var/log/httpd

without supplying a password.  I can put it into a shell script and
execute that script without a password.  

WHY doesn't it work from cron as advertised?  I simply used crontab -e
to put the right command in my crontab, but I'm getting authentication
errors:

Date: Tue, 3 Jun 2003 13:49:01 -0400
From: Cron Daemon <root at joe.example.com>
To: joe at joe.example.com
Subject: Cron <joe at example.com> /home/joe/getLogs.sh

Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password,keyboard-interactive).
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(150)


-- 
Greg Rundlett
Sr. Internet Systems Architect
Knowledge Institute
creators of the Business Utility Zone Gateway
at www.buzgate.org
(603) 642-4720
greg.rundlett at buzgate.org




More information about the gnhlug-discuss mailing list