From owner-freebsd-questions@FreeBSD.ORG Sun Nov 16 16:33:47 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 71DE5106564A for ; Sun, 16 Nov 2008 16:33:47 +0000 (UTC) (envelope-from ronw@bals.org) Received: from bal.bals.org (bal.bals.org [65.122.161.147]) by mx1.freebsd.org (Postfix) with ESMTP id 37DA98FC17 for ; Sun, 16 Nov 2008 16:33:46 +0000 (UTC) (envelope-from ronw@bals.org) Received: from [192.168.0.153] (c-69-244-214-70.hsd1.fl.comcast.net [69.244.214.70]) (authenticated bits=0) by bal.bals.org (8.14.3/8.14.2) with ESMTP id mAGGAn2L083466; Sun, 16 Nov 2008 11:10:53 -0500 (EST) (envelope-from ronw@bals.org) Message-ID: <49204606.6090106@bals.org> Date: Sun, 16 Nov 2008 11:10:46 -0500 From: Ron Wilhoite Organization: Bay Area Legal Services, Inc. User-Agent: Thunderbird 2.0.0.17 (X11/20080914) MIME-Version: 1.0 To: eculp@casasponti.net References: <20081116095044.17qwm4xct6bkwsc4w@intranet.casasponti.net> In-Reply-To: <20081116095044.17qwm4xct6bkwsc4w@intranet.casasponti.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bal.bals.org [192.168.0.2]); Sun, 16 Nov 2008 11:10:53 -0500 (EST) X-Scanned-By: MIMEDefang 2.64 on 192.168.0.2 Cc: freebsd-questions@freebsd.org Subject: Re: How can rsync with ssh be used on a non standard ssh port X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ronw@bals.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Nov 2008 16:33:47 -0000 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