Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Nov 2008 08:18:17 -0800
From:      Jeremy Chadwick <koitsu@FreeBSD.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:  <20081116161817.GA5749@icarus.home.lan>
In-Reply-To: <20081116094339.17qwm4xct6bkwsc4w@intranet.casasponti.net>
References:  <20081116094339.17qwm4xct6bkwsc4w@intranet.casasponti.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Nov 16, 2008 at 09:43:39AM -0600, eculp@casasponti.net wrote:
> Test example.
>
> I need to sync a directory from my machine to another that is using port 
> 722 rather than 22.  I can use ssh -pm722, scp -P 722 fine but I prefer 
> rsync for the backup due to configuration flexibility.  The man says:
>
> rsync [OPTION...] SRC... rsync://[USER@]HOST[:PORT]/DEST
>
> Which I translate to something like:
>
> rsync -avz /almacen/testDir rsync://backupMachine.com:722/backup/
>
> but I get the following:
>
> 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 variants to the point of no return.  Help would be appreciated.

Check out the -e flag for rsync.  There are examples of how to use this
inside of the rsync(1) man page.

-- 
| Jeremy Chadwick                                jdc at parodius.com |
| Parodius Networking                       http://www.parodius.com/ |
| UNIX Systems Administrator                  Mountain View, CA, USA |
| Making life hard for others since 1977.              PGP: 4BD6C0CB |




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