rsync with plink does not work

From: Aldrich (ggjj)
Date: 09/24/04


Date: Fri, 24 Sep 2004 09:21:18 +0200

Hello,

I have problems to get rsync to work with plink:

rsync -ave "plink -v user@host" :~/test/* /cygdrive/g/work/test/

produces the following output:
Server version: SSH-1.99-OpenSSH_3.7.1p2
We claim version: SSH-2.0-PuTTY-Snapshot-2004-09-01
Using SSH protocol version 2
Doing Diffie-Hellman group exchange
Doing Diffie-Hellman key exchange
Host key fingerprint is:
ssh-rsa 1024 f7:0d:a8:e0:03:58:7b:e5:d3:2b:6a:cb:96:5e:68:bb
Initialised AES-256 client->server encryption
Initialised AES-256 server->client encryption
Using username "user".
Pageant is running. Requesting keys.
Pageant has 1 SSH2 keys
Trying Pageant key #0
Authenticating with public key "rsa-key-20040415" from agent
Sending Pageant's response
Access granted
Opened channel for session
Started a shell/command
Sent EOF message
rsync: connection unexpectedly closed (0 bytes read so far)
Server sent command exit status 12
All channels closed. Disconnecting
rsync error: error in rsync protocol data stream (code 12) at io.c(165)
rsync: read error: No children
rsync error: error in rsync protocol data stream (code 12) at io.c(354)

---
It looks as if plink closes the connection immediately after its
established.
plink user@host works fine!
rsync -ave "ssh -v user@host" :~/test/* /cygdrive/g/work/test/
works fine, but I have to enter a password. I would prefer using
plink/pageant.
Any suggestions?


Relevant Pages

  • Using plink in conjunction with rsync
    ... I'm having difficulty using plink in conjunction with rsync. ... Using username "mpdm". ... Authenticating with public key "Private key for MPDM copy 01" ...
    (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: Need recommendation for USB Thumb Drive
    ... not write all buffers out until you dismount the file system. ... would be rsync). ... error in rsync protocol data stream at ...
    (comp.os.linux.misc)
  • Re: rsync error
    ... --include=PATTERN don't exclude files matching PATTERN ... rsync error: syntax or usage error at main.c ... rsync error: error in rsync protocol data stream at ...
    (comp.unix.aix)
  • Re: [SLE] Backup utility: does it exist?
    ... Thanks to all for the pointer to rsync. ... rsync error: error in rsync protocol data stream at io.c ...
    (SuSE)