mitchellh/vagrant — pull request #3360 by valioDOTch (2014-03-31 12:30:14+00:00)
Title: Fixed unquoted ssh with rsync bug

In the previous version the string was built as

rsync --verbose --archive --delete -z -e ssh -p 2222 -o StrictHostKeyChecking=no -i '/path/to/private_key' --exclude .vagrant/ --exclude {...} /path/to/local/ vagrant@127.0.0.1:/home/vagrant/www

However to connect properly the ssh-part needs to be quoted, i.e.

rsync --verbose --archive --delete -z -e "ssh -p 2222 -o StrictHostKeyChecking=no -i '/path/to/private_key'" --exclude .vagrant/ --exclude {...} /path/to/local/ vagrant@127.0.0.1:/home/vagrant/www