Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use Windows 7 machine and Putty to connect to UNIX servers. I am required to FTP certain files from those server to my local windows machine. For this purpose I use a FTP client like FileZilla or WinSCP.

However, I want to create a script , that would:

  1. Connect to unix server from my windows machine.
  2. FTP file from certain directories to windows machine.
  3. Terminate the connection after the FTP download is complete.
  4. This should occur periodically.

I have installed rsync 3.0 and cygwin. When I enter the following command:

rsync -e ssh user@host:/remote_directory .

It asks me: Enter Securid PASSCODE:. and I enter the password for the same, but I get the error:

sh: rsync:  not found.
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: remote command not found (code 127)
   at /home/lapo/package/rsync-3.0.9-1/src/rsync-3.0.9/io.c(605) [Receiver=3.0.9]

Please help me in understanding why I face this problem.

share|improve this question
Is rsync installed on the linux server? – 3molo May 14 '12 at 5:36
By "FTP", do you mean FTP or SFTP? – mgorven May 14 '12 at 6:12

Use cURL instead. rsync won't do what you require.

share|improve this answer

I think you are getting this error because rsync path cannot be found try with the full path.

You can do that with curl too but I understand can be done with rsync or you could try scp. I don' understand if you have the FTP server installed or you are just using SFTP thru the SSH...

share|improve this answer

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.