Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I use rsync to sync files between a local directory and a remote host. I also use plink to automate my SSH passphase entry.

What I can't figure out is how to use rsync with plink. This is what I think the syntax should be:

rsync -args --rsh="plink user@remote" local_dir/ :/remote_dir

But I get "Access Denied" messages. Is there a way to do this? Is it simple?

Edited to reflect what I think the syntax should look like. I had it very wrong before.

share|improve this question
add comment

2 Answers

I typically do my rsyncs over ssh with something similar to the following:

rsync -args -e "ssh -i .ssh/my-key" user@hostname:/dir1 /dir2

You could try substituting the appropriate plink or putty command.

share|improve this answer
Thank you, but it's not working for me. Please see my edits because I originally messed up the syntax of the rsync command. –  Corey May 2 '11 at 14:19
add comment

It seems to be an incompatibility in stdin/stdout redirection between cygwin and native Win32 programs.

Someone has managed to make a wrapper that solves the problem:


The usage would be something like:

rsync -args -e="cygnative plink" local_dir/ user@remote:/remote_dir
share|improve this answer
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.