From owner-freebsd-questions@FreeBSD.ORG Mon Nov 17 02:08:18 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 22506106564A for ; Mon, 17 Nov 2008 02:08:18 +0000 (UTC) (envelope-from eculp@casasponti.net) Received: from ns2.bafirst.com (72-12-2-19.static.networktel.net [72.12.2.19]) by mx1.freebsd.org (Postfix) with ESMTP id C9A868FC13 for ; Mon, 17 Nov 2008 02:08:17 +0000 (UTC) (envelope-from eculp@casasponti.net) Received: from casasponti.net ([201.155.7.3]) by ns2.bafirst.com with esmtp; Sun, 16 Nov 2008 20:08:16 -0600 id 000D5261.4920D210.00009253 Received: from localhost (localhost [127.0.0.1]) (uid 80) by casasponti.net with local; Sun, 16 Nov 2008 20:08:04 -0600 id 00130C0F.4920D204.00005B40 Received: from dsl-189-190-24-60.prod-infinitum.com.mx (dsl-189-190-24-60.prod-infinitum.com.mx [189.190.24.60]) by intranet.casasponti.net (Horde Framework) with HTTP; Sun, 16 Nov 2008 20:08:04 -0600 Message-ID: <20081116200804.17qwm4xct6sgocgww@intranet.casasponti.net> Date: Sun, 16 Nov 2008 20:08:04 -0600 From: eculp@casasponti.net To: freebsd-questions@freebsd.org References: <20081116095044.17qwm4xct6bkwsc4w@intranet.casasponti.net> <49204858.6060604@unsane.co.uk> In-Reply-To: <49204858.6060604@unsane.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (5.0-cvs) X-Remote-Browser: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.18) Gecko/20081114 Firefox/2.0.0.18 X-IMP-Server: 201.155.7.3 X-Originating-IP: 189.190.24.60 X-Originating-User: eculp@casasponti.net 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Nov 2008 02:08:18 -0000 Vincent Hoffman escribi=F3: > 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=3D3.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 > Thanks, Vince. That is a ver interesting solution. I'm going to give =20 it a try in the morning. ed