From owner-freebsd-questions@FreeBSD.ORG Sun Nov 16 15:43:52 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 C0E851065675 for ; Sun, 16 Nov 2008 15:43:52 +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 612EF8FC13 for ; Sun, 16 Nov 2008 15:43:52 +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 09:43:50 -0600 id 000D51F5.49203FB6.00007B8A Received: from localhost (localhost [127.0.0.1]) (uid 80) by casasponti.net with local; Sun, 16 Nov 2008 09:43:39 -0600 id 00130D91.49203FAB.00004340 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 09:43:39 -0600 Message-ID: <20081116094339.17qwm4xct6bkwsc4w@intranet.casasponti.net> Date: Sun, 16 Nov 2008 09:43:39 -0600 From: eculp@casasponti.net To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit 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: 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 15:43:52 -0000 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. Thanks, ed