Rsync with daemon over SSH on port 22 not daemon port

Paul Slootman paul+rsync at
Tue May 6 09:17:24 GMT 2008

On Mon 05 May 2008, markcliff at wrote:

> Have daemon setup on port 10001.
> Do not have NC, do not have root access. 
> Client command : 
> rsync -avzul -e "ssh -vvv -l username" /home/users/blah/ rsync://lrem02:10001::/live

Firstly, this syntax is not quite correct, the manpage says:

    rsync [OPTION...] SRC... rsync://[USER@]HOST[:PORT]/DEST

That would translate to:


i.e. don't confuse the two ways of specifying a daemon transfer
(rsync://host/module and host::module)

Secondly, if you have a daemon on 10001, why are you using ssh?
Alternatively, if you have ssh access, why use a daemon?

> How can i transfer to a non standard SSH daemon port (10001) with non-root and non access to alter the init default files (873). 

If you have an _ssh_ daemon on 10001, then use:

    rsync -e 'ssh -p 10001' ...

You could also make an entry for the remote host in ~/.ssh/config , like

Host remotehost
    Port 10001

That will then be used as the default ssh port for that remotehost.

Paul Slootman

More information about the rsync mailing list