rsync -avz -e 'ssh -p 22222' sourcefile 10.0.28.164:/home/destination/Note:-e 'ssh -p 22222 - is to specify custom ssh portsourcefile - is refer to the source file that need to be transfer10.0.28.164:/home/destination/ - to specify the destination ip and location