Using plink in conjunction with rsync

From: Jim Gallagher (jim_at_thegallaghers.biz)
Date: 09/15/04


Date: 15 Sep 2004 11:40:10 -0700

Hi,

I'm having difficulty using plink in conjunction with rsync. I believe
the error I'm seeing is coming from plink, as the "Unable to write to
standard output" message appears in the source to plink, but not
rsync:

$ rsync -a --rsync-path=/home/mpdm/rsync.debug --rsh="plink -batch
-load mpdm-
w2k3-batch -l mpdm mpdm-w2k3" mpdm-w2k3::MPDM .
Using username "mpdm".
Authenticating with public key "Private key for MPDM copy 01"
Unable to write to standard output
rsync: read error: Connection reset by peer
rsync error: error in rsync protocol data stream (code 12) at
/home/lapo/package
/tmp/rsync-2.6.2/io.c(354)
$

Plink works by itself:
$ plink -batch -load mpdm-w2k3-batch -l mpdm mpdm-w2k3
Using username "mpdm".
Authenticating with public key "Private key for MPDM copy 01"
Last login: Wed Sep 15 11:34:41 2004 from ugls046935.sw.nos.boeing.com
←]0;~
←[32mmpdm@MPDM-W2K3 ←[33m~←[0m
$ (this prompt is on the remote machine)

What am I doing wrong? Any help appreciated,

Thanks,
Jim Gallagher
Cypress, CA



Relevant Pages

  • rsync with plink does not work
    ... I have problems to get rsync to work with plink: ... Doing Diffie-Hellman group exchange ... error in rsync protocol data stream at io.c ... It looks as if plink closes the connection immediately after its ...
    (comp.security.ssh)
  • rsync and plink (putty) fails, but cygwin ssh works
    ... I've got this working with the Cygwin rsync and Cygwin ssh - Windows ... one would assume plink would work - this is from the Putty ...
    (comp.security.ssh)
  • Re: time to come clean... .
    ... It uses the rsync protocol for sending only changed blocks, but saves the sent data to one side as well to make a 'transaction log'. ... You end up with a full copy of the current data (as you would with rsync) and a command to construct any previous version by applying the changes in reverse as necessary. ... Even if you don't fancy the software, the article also has the info you need to get a reasonably safe root SSH (limited by IP, and the command that can be run, AND the public key) going with public key authentication, which will help for rsync as well. ...
    (freebsd-questions)
  • Re: Shell-script puzzle
    ... I already have fetchmail running ... I run backup scripts using rsync at night as cron jobs at work, but between different machines across the network. ... AIUI, the reasoning is that if you have authority to put your public key onto another machine, you must therefore have authority to copy files to it, so it has no need to ask for a password. ...
    (Fedora)
  • Wacky problem with openssh 3.4p1 + RH 7.2
    ... I'm trying to get no-password public key authentication working on one of my ... servers so tha I can rsync stuff to it, and im running into a very strange ...
    (comp.security.ssh)