rsync with server on non-standard SSH port 

http://www.gearhack.com/Forums/DisplayComments.php?file=Computer/Linux/rsync_with_server_on_non-standard_SSH_port

WebHostingBuzz provides SSH access, except it uses a non-standard port (not port 22). So when I do rsync to transfer files, I had to use the following form:

rsync [OPTION]... rsync://[USER@]HOST[:PORT]/SRC [DEST]

Problem is, rsync kept returning the following error message:

rsync: server sent "SSH-2.0-OpenSSH_3.9p1" rather than greeting
rsync error: error starting client-server protocol (code 5) at main.c(1046)
  1. . . I figured out that you have to specify the remote shell with the "-e" switch. So the final command that worked is

    rsync [OPTION] -e "ssh -p PORT" ... [USER@]HOST:SRC [DEST]

documented on: Wed, 22 Aug 2007, Chieh Cheng