Rsync With A Non-Standard SSH Port

by lifeLinux on August 23, 2011

How do I tell rsync to use a different port for SSH ?

# rsync -av -e "ssh -p [port_number]" user@ip:/path/to/source/ /path/to/destination/


Example, i will copy data from root@209.141.56.112:/root/backup/ to /home/lifelinux/backup/ with source server has ssh port is 2222. Type the following command

# rsync -av -e "ssh -p 2222" root@209.141.56.112:/root/backup/ /home/lifelinux/backup/

Related Posts:

Previous post:

Next post: