Host key verification failed. - SCO

This is a discussion on Host key verification failed. - SCO ; Im learning abt cron and tried to setup a dummy crontab. after writing the backup script using rsync and sh im gettin the error: "Host key verification failed. rsync: connection unexpectedly closed (0 bytes received so far) [receiver] rsync error: ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: Host key verification failed.

  1. Host key verification failed.

    Im learning abt cron and tried to setup a dummy crontab.
    after writing the backup script using rsync and sh im gettin the error:
    "Host key verification failed.
    rsync: connection unexpectedly closed (0 bytes received so far)
    [receiver] rsync error: error in rsync protocol data stream (code 12)
    at io.c(359)"

    whats wrong?? why isint it working??

    and can somone plz explain these 2 lines:
    export PATH=$PATH:/usr/local/bin
    if [! -f /tmp/syncingcmsbackup ]

    any help is much appreciated.

    thanks in advance


  2. Re: Host key verification failed.

    Now i am getting this new error
    Permission denied, please try again.
    Permission denied, please try again.
    Permission denied (publickey,gssapi-with-mic,password).
    rsync: connection unexpectedly closed (0 bytes received so far)
    [receiver] rsync error: error in rsync protocol data stream (code 12)
    at io.c(359)


  3. Re: Host key verification failed.

    thecoolone wrote:
    > Im learning abt cron and tried to setup a dummy crontab.
    > after writing the backup script using rsync and sh im gettin the error:
    > "Host key verification failed.
    > rsync: connection unexpectedly closed (0 bytes received so far)
    > [receiver] rsync error: error in rsync protocol data stream (code 12)
    > at io.c(359)"

    > whats wrong?? why isint it working??


    Well, probably nothing to do with cron per se. Apparently you are
    trying to use a ssh key? You are probably trying to use a blank
    passphrase for this?

    Does the script work from the command line? If so, then you need to
    understand that cron would need your key file: see
    http://aplawrence.com/Security/sshpassphrases.html which might help you
    understand that better.

    >
    > and can somone plz explain these 2 lines:
    > export PATH=$PATH:/usr/local/bin


    That adds /usr/local/bin to PATH - if that's in your cron script it's
    there so the rest of the script doesn't have to say
    "/usr/local/bin/whatever". See
    http://aplawrence.com/Words2005/2005_04_27.html

    > if [! -f /tmp/syncingcmsbackup ]


    That tests the existence of /tmp/syncingcmsbackup and specifically
    requires that it be an ordinary file: not a directory, not a device
    file etc. ("-f")

    If it does NOT exist (the "!"), the commands that follow - up to "fi" -
    will run.

    See http://aplawrence.com/Words2005/2005_04_24.html


    --
    Tony Lawrence
    http://aplawrence.com
    Unix/Linux/MacOSX Resources


+ Reply to Thread