title: rsync pull or push over specific port?
body: <p>I'm looking for assistance with using rsync from a ubuntu server and my local windows machine.  I am running Cygwin64 on my local machine.  I would like to execute rsync on the ubuntu server to move files to my local machine, but I am having trouble with how to specify the directory and specifying a port.  I have forwarded my port 52000 for both TCP and UDP traffic through my router to my computer running Cygwin64 and made an exception for windows firewall settings on this machine.</p>
  
  <p>Here are the parts of my code I am using and need help with</p>
  
  <pre><code>rsync --update -- ignore-existing --progress -vure ssh
  </code></pre>
  
  <p>I have seen may ways to specify the port I want to use.  I want to use the options within the command line instead of changing my ssh config file (not sure if I would need to change it on the ubuntu server or my windows machine running Cygwin64).  I have seen -p port, 'ssh -port' and others.  I also am not sure how to write it if I am running the rsync command from the ubuntu server or my windows machine.  I suspect that it is only needed if I am running rsync command from the ubuntu server so that rsync will use port 52000 to connect to my local windows machine.  I suspect that if I tried to run rsync on my windows Cygwin64 machine and specify a port, it would be like my Cygwin64 machine telling the ubuntu server which port to open to ssh incoming traffic and I suspect that the owner of the server has only opened the typical ssh port to traffic (22 right?) so it would just say 'no' and not work (I have tried this and it gives me an error-but maybe I wrote the command line wrong?)</p>
  
  <p>This is the second part I need help with</p>
  
  <pre><code>[USER@]HOST:SRC DEST
  </code></pre>
  
  <p>Currently I can successfully use this format and the above rsync commandline options from within cygwin64 to to pull files from the ubuntu server to my local cygwin64 drive.</p>
  
  <pre><code>/[user@host]:/home/[user]/downloads/1/ /cygdrive/e/1
  </code></pre>
  
  <p>If I try to change the ssh port how would this need to change?
  If I were to run rsync from the ubuntu server how would I change it as I don't know what my windows64 machine running Cygwin64 user name or host (I currently get IPS from my cable company in the USA).</p>
  
  <p>Since there are a number of issues with this, please feel free to help with all or just one.</p>
  
  <p>Thanks.
  -S</p>