Couple things.
1) Is /usr/local/bin in the default path for cron on both
systems ?
Placing a link for all the software to /usr/bin may solve
your problem.
2) Since you are using a scp2 via cron, use the following options
-BqQ
B is for batchmode, use this when doing scp2's via cron
and the double q's
just prevent any output from scp2 being sent to cron.
3) When you generated your keypair did you use the -P option
for passwordless key ?
4) Check your typos.
Those are the 4 top problems I see when using this type of setup.
-Todd Wilkinson
[EMAIL PROTECTED]
At 01:00 AM 9/4/01 +0200, Ulrich Werling wrote:
>Hello,
>
>I have a problem when using scp2 and cron (SSH3.0.1 and SSH2.4 package
>on SuSE Linx 7.2):
>
>trying to copy files per scp2 and cron using a publickey without a
>passphrase I always get the
>message from cron
>
> >From root Tue Sep 4 00:31:01 2001
>Date: Tue, 4 Sep 2001 00:31:01 +0200
>From: [EMAIL PROTECTED] (Cron Daemon)
>To: [EMAIL PROTECTED]
>Subject: Cron <root@server2> /apps/cluster/getCPUdata
>X-Cron-Env: <SHELL=/bin/sh>
>X-Cron-Env: <HOME=/root>
>X-Cron-Env: <PATH=/usr/bin:/bin>
>X-Cron-Env: <LOGNAME=root>
>
>ssh2: FATAL: ssh_io_register_fd: fd 0 already registered!
>scp2: warning: child process (/usr/local/bin/ssh2) exited with code 255.
>
>If I start the script as root from the command line it works without a
>problem. The script is very simple:
>
>/usr/local/bin/scp2 -S /usr/local/bin/ssh2
>testuser@server5:/data/test/* /data/test
>
>The .ssh2 directory of root (/root/.ssh2) on server2 contains the
>privatekey for testuser
>and also the correct identification file; the .ssh2 directory of
>testuser (/home/testuser/.ssh2) on server5 contains the publickey and
>the authorization file.
>the publickey authentication method is included in the ssh2d_config on
>server5 and ssh2_config
>on server2.
>
>Has anyone an idea what I do wrong?
>
>Kind regards
>
>Ulrich Werling
>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]