Using Rsync over custom SSH port

Posted on 11-07-2018 by Nadir Latif


Source: https://linux-tips.com/t/using-custom-port-for-rsync-over-ssh/467/2

Rsync can be used with custom SSH ports. For example to copy data from a remote server that is running SSH server over port 3000, the following command can be used:


rsync -avze "ssh -p 3000"  {user}@{server}:{remote_folder} {local_folder}