jedrichards/grunt-rsync

Failing to "find" ssh on Windows

Closed this issue · 2 comments

I know you don't have a Windows box to debug, but hopefully we could work together to figure out what the issue might be.

I'm getting the following error when I try to run the rsync task:

rsync _site/ user@staging-host:/var/www/site --rsh=ssh --recursive --delete --delete-excluded -e "ssh -p 1234"
Error: rsync exited with code 12. rsync: Failed to exec ssh -p 1234: No such file or directory (2)

Both rsync and ssh are in my PATH. Confirmed multiple times :)

rsync  version 3.0.7  protocol version 30

If I take the command that grunt-rsync is trying to run and paste it myself, it no longer occurs (it simply rejects the connection because of the goofy credentials)

The following command works when I manually enter it myself, but seemingly not when grunt-rsync tries to run it:

rsync _site/ user@staging-host:/var/www/site --rsh=ssh --recursive --delete --delete-excluded -e "ssh -p 1234"

I did a bit of poking around and noticed this is actually an issue with rsyncwrapper. Will post this there instead.