From owner-freebsd-questions@FreeBSD.ORG Mon Nov 17 12:02:34 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 30C531065678 for ; Mon, 17 Nov 2008 12:02:34 +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 C22988FC1C for ; Mon, 17 Nov 2008 12:02:33 +0000 (UTC) (envelope-from eculp@casasponti.net) Received: from casasponti.net ([201.155.7.3]) by ns2.bafirst.com with esmtp; Mon, 17 Nov 2008 06:02:31 -0600 id 000D50DC.49215D57.0000E875 Received: from localhost (localhost [127.0.0.1]) (uid 80) by casasponti.net with local; Mon, 17 Nov 2008 06:02:16 -0600 id 00130C5A.49215D48.000102EE 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; Mon, 17 Nov 2008 06:02:16 -0600 Message-ID: <20081117060216.17qwm4xct7b4wwoo4@intranet.casasponti.net> Date: Mon, 17 Nov 2008 06:02:16 -0600 From: eculp@casasponti.net To: Vincent Hoffman 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 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Nov 2008 12:02:34 -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. >> >> 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 > Hi Vince, I tested the ssh_config changes and indeed they work beautifully and =20 give me an added layer of flexibility. This certainly seems to be the =20 optimal solution for for different host configurations without having =20 to change remote scripts. I hadn't even considered it. Again DUH! Hello! I can't thank you enough. ed