Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Nov 2008 11:10:46 -0500
From:      Ron Wilhoite <ronw@bals.org>
To:        eculp@casasponti.net
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How can rsync with ssh be used on a non standard ssh port
Message-ID:  <49204606.6090106@bals.org>
In-Reply-To: <20081116095044.17qwm4xct6bkwsc4w@intranet.casasponti.net>
References:  <20081116095044.17qwm4xct6bkwsc4w@intranet.casasponti.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11/16/2008 10:50 AM eculp@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 believe you want the -e option. Example from the man page:

-e 'ssh -p 2234'

In your case, rsync -e 'ssh -p 722' -avz ........

The [:PORT] you tried appears to be for connecting to an rsync daemon 
listening on a non-standard port.

Ron





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49204606.6090106>