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]

Reply via email to