[CentOS] rsync question

Fri Sep 11 14:21:46 UTC 2015
C Linus Hicks <linush at verizon.net>

 On 09/10/15, Robert Moskowitz wrote:

--------------- Quoted text ------------------
SSh is not parsing the port the way http does, it seems:

$ rsync -ah --stats root at 192.168.129.2:613:/etc/dhcp/ 
/home/rgm/data/htt/httnet/homebase/new/dhcp
ssh: connect to host 192.168.129.2 port 22: No route to host
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: unexplained error (code 255) at io.c(226) [Receiver=3.1.1]

The reason why I change my SSH port is a simple way to keep port knocker 
robots away. Different hosts use different ports...

------------------ End quote --------------------

Oh, right, so you either need to put that in your .ssh/config file or use -e 'ssh -p 613' on the rsync command.

The config file should look like this:
Host 192.168.129.2
     Port 613