How can rsync with ssh be used on a non standard ssh port

Vincent Hoffman vince at unsane.co.uk
Sun Nov 16 08:20:56 PST 2008


eculp at casasponti.net wrote:
> I need to use rsync for backup to another machine using a nonstandard
> port for ssh. 722.
>
> For example, when I test using my translation of the man pages:
>
> rsync [OPTION...] SRC... rsync://[USER@]HOST[:PORT]/DEST
>
> I use:
>
> rsync -avz /almacen/testDir rsync://backkup.net:722/backup/
>
> the error generated is:
>
> rsync: server sent "SSH-2.0-OpenSSH_5.1p1 FreeBSD-20080901" rather
> than greeting
> rsync error: error starting client-server protocol (code 5) at
> main.c(1504) [sender=3.0.4]
>
> I've tried many variants but none have worked.  Any suggestions would
> be greatly appreciated.
>
Hi,
-e 'ssh -p722' should do it in theory
I'm not certain if rsync over ssh honours the SSH_CONFIG(5) file(s) it
should do though. If so it could also be added on a per host basis there.
something like

Host foo.example.com
Port 722
User myuser
IdentityFile /path/to/custom/key

Vince
> Thanks,
>
> ed
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"



More information about the freebsd-questions mailing list