rsync: Failed to exec ssh: No such file or directory(2) on windows

After installing cwrsync, you are likely to get this error  when you try to run this sample command from the command line.

rsync  -avz  -e  ssh ycsoftware@google.com:/home/ycsoftware /cygdrive/z/ycsoftware/

“rsync: Failed to exec ssh: No such file or directory(2)” cwrsync

The reason you are getting this is because for some reason rsync is not able to find the path to the ssh.exe file. You should change it to something like this:

rsync  -avz  -e  "\"/cygdrive/c/program files/cwrsync/bin/ssh.exe\""  ycsoftware@google.com:/home/ycsoftware /cygdrive/z/ycsoftware/

 

Let's share thisShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn