Re: scp works on command line, fails in cron

From: Bill Unruh (unruh_at_string.physics.ubc.ca)
Date: 12/29/04

  • Next message: dkpagasg_at_freedvd.com: "Hot 22 Year Old Looking For Love Or More.....Please Contact Me.......... 35O1"
    Date: 29 Dec 2004 17:16:20 GMT
    
    

    tonij67@hotmail.com writes:

    >Here is the crontab line:

    >* * * * * /usr/local/bin/scp -v /tmp/2 10.46.0.102:/utils/backup

    >This runs it every minute for testing purposes.

    >I have tried using bash and ksh, both give the same results. I double
    >checked to make sure my path to the shel is correct (i.e. /usr/bin/ksh
    >and /usr/bin/bash )

    >No other cronjobs fail, just this one..

    Is your secret key file (id_rsa) password protected with something like
    ssh-agant running so you forgot that you had to enter the password sometime
    in the past?
    If you are going to use scp from cron then you cannot have the secret key
    files password protected.


  • Next message: dkpagasg_at_freedvd.com: "Hot 22 Year Old Looking For Love Or More.....Please Contact Me.......... 35O1"