how to copy my *!&^%# log files
Tom Buskey
tom at buskey.name
Wed Jun 4 13:59:06 EDT 2003
Kevin D. Clark wrote:
> 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
You shouldn't need keychain/ssh-agent/ssh-add to do passwordless ssh.
You might need:
-i <sshkeyfile>
to be running as the right user
chmod go-rwx ~user/.ssh
Try ssh -v -v
and try killing sshd on the other end, run sshd -d and then ssh into it.
It might point something out.
More information about the gnhlug-discuss
mailing list