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

Kevin D. Clark kclark at CetaceanNetworks.com
Wed Jun 4 12:07:41 EDT 2003


Greg Rundlett <greg at buzgate.org> writes:

> 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?  

Are you sure you have Keychain set up correctly?  

The code that you execute from a cron job executes in a seperate login
environment.  Your cron job doesn't inherit your SSH_AUTH_SOCK and
SSH_AGENT_PID environment variables that your normal interactive login
already has setup.

If I were to hazard a guess, it sounds to me like you haven't taken
steps to ensure that the interaction between ssh-add and ssh-agent are
taken care of.  Keychain can take care of this, if you set it up
correctly.

Regards,

--kevin
-- 
"Nature never deceives us; it is always we who deceive ourselves."
--Jean-Jacques Rousseau




More information about the gnhlug-discuss mailing list