Rsync with a non-standard ssh port

While doing some work on migrating accounts to a new server, I needed to use rsync over ssh. The ssh daemon on the remote server runs on a non-standard port, and all the port related options to rsync only change settings if you’re running the rsync-daemon.

After some searching, the man page of rsync  offered a solution:

rsync -avz -e "ssh -p $portNumber" /localpath user@remoteip:/remotepath

 

Facebook Comments

More Stuff

Ubuntu Linux install OpenSSH server nixCraft How do I install OpenSSH server on Ubuntu Linux?Introduction: sshd (OpenSSH Daemon or server) is the daemon program for ssh client. It is a free and ...
Free WordPress Form Plugins Almost all websites have (or should have) a form of some kind, to be completed by interested visitors. Whether it is a simple newsletter signup, a mea...
How to create a hard links in Linux or Unix nixCraft Updated Tutor... I am a new Linux system user. How do I create a hard link in Linux / UNIX / Apple Mac OS X / BSD operating systems using the command line?Both Linux ...
What was the most important moment in the history of Linux? Getting to where it is today was no small feat for the little project that Linus Torvalds announced to the world on August 25, 1991, with this newsgro...
Spread the love

Posted by News Monkey