rsync with plink does not work

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!


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
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

Any suggestions?

Site Timeline