From owner-freebsd-questions@FreeBSD.ORG Sun Nov 16 16:20:56 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 6CD4D1065678 for ; Sun, 16 Nov 2008 16:20:56 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id EB7B58FC12 for ; Sun, 16 Nov 2008 16:20:55 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from vhoffman-macbook.local ([10.0.0.173]) (authenticated bits=0) by unsane.co.uk (8.14.0/8.14.0) with ESMTP id mAGGKQ3w065084 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 16 Nov 2008 16:20:26 GMT (envelope-from vince@unsane.co.uk) Message-ID: <49204858.6060604@unsane.co.uk> Date: Sun, 16 Nov 2008 16:20:40 +0000 From: Vincent Hoffman User-Agent: Thunderbird 2.0.0.17 (Macintosh/20080914) MIME-Version: 1.0 To: eculp@casasponti.net References: <20081116095044.17qwm4xct6bkwsc4w@intranet.casasponti.net> In-Reply-To: <20081116095044.17qwm4xct6bkwsc4w@intranet.casasponti.net> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: Sun, 16 Nov 2008 16:20:56 -0000 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'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 Vince > Thanks, > > ed > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"