Hi everybody,

    I configured ssh2 on sun Sparc running solaris 7. The authentication is
host based authentication.
    I want to copy passwd and shadow files from host1 to hots2 using scp.
    I wrote a bourne shell script (it's only 3 lines). When I use this
script on command line..it works.
     But I put this a s cron job it's not working.

   When the script is as follows:

   #! /bin/sh
   PATH=/usr/local/sbin:/usr/local/bin:$PATH
   /usr/local/bin/scp  root@host2:/etc/passwd /tmp/passwd
   /usr/local/bin/scp  rott@host2:/etc/shadow /tmp/shadow

I have the following error:

   'ssh2 -l root -x -a -o clearallforwardings yes.................... sftp'
no such file or directory
    scp: warning: child proces (ssh2)  exiting with error code 255

when the script is same as above except it is used with -S option i.e

/usr/local/bin/scp -S /usr/local/bin/ssh2  root@host2:/etc/passwd
/tmp/passwd

Then the error is:
exec 'ssh-signer2' (No such file or directory)FATAL executing ssh-signer2
failed. 

Please help me. 

Thanks a lot.
sri.

  

Reply via email to