This script works rsync --rsh="ssh -p2222" -arvuz /Users/me/Sites/whitepine/ cryptic0@remotehost.net:/home/cryptic0/www/secure2/ --exclude 'deploy' --exclude '.*' --exclude '*.swp' ++++++++++++++++++++++++++++++++++++++ This script doesnt rsync --rsh"ssh -p22" -arvuz /Users/me/ me@192.168.1.103:/target/dir/ ++++++++++++++++++++++++++++++++++++++++++ This one doesn't either rsync -arvuz -e ssh /Users/me/ me@192.168.1.103:/target/dir/ The program interprets the path to target dir as /Users/me/me@192.168.1.103:/target/dir/ and obviously fails.