delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/03/30/12:41:22

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.0 required=5.0 tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <CB8CBF2438A341138708D9783EEC2DA3@JOHN>
From: "John MacKenzie" <johnner AT gmail DOT com>
To: <cygwin AT cygwin DOT com>
Subject: Fw: How to change the default outgoing port from 22 in cygwin/ssh
Date: Mon, 30 Mar 2009 13:40:58 -0400
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hi All

I am trying to acomplish the following:

use CYGwin as an rsync emulator from my Local Windows computer to connect 
via SSH to a remote Unix based server for the purposes of backing up files.

My PROBLEM: my server blocks port 22 for a small measure of security and 
uses a different port for example 2121 for ssh traffic.
when using the rsync command from cygwin, there appears to be no way to 
force a different port as you can do when running the ssh command with 
the -p flag

My Question: is there a way to change the deafult port that cygwin/rsync/ssh 
(not really sure which ) uses so that I can get my little batch file running 
with my rsync command to connect to my remote server?

here is the rsync command I am using:

rsync -avzun user@[HOSTIP]:/[DIRTOBACKUP] [/LocalBackupFolder/SubFolder]

any guidance would be greatly appreciated.

Thanks

John 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019