X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 30 Mar 2009 13:58:28 -0400 Message-ID: Subject: Re: Fw: How to change the default outgoing port from 22 in cygwin/ssh From: "Mark J. Reed" To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Mon, Mar 30, 2009 at 1:40 PM, John MacKenzie wrote: > > 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. You're not emulating anything. You're using the Cygwin port of rsync. > My PROBLEM: my server blocks port 22 for a small measure of security and > uses a different port for ssh traffic. This is not a Cygwin question. If you read the man page for rsync: -e, --rsh=COMMAND This option allows you to choose an alternative remote shell program to use for communication between the local and remote copies of rsync. [...] Command-line arguments are permitted in COMMAND provided that COMMAND is presented to rsync as a single argument. [...] Some examples: -e 'ssh -p 2234' (Note that ssh users can alternately customize site-specific connect options in their .ssh/config file.) So, you can either add "-e 'ssh -p blah' " to your rsync command line, or add a section to your ~/.ssh/config file specifying a different port number for all outbound ssh connections to that server (see "man ssh_config" for how to do that). The latter would be the preferred option if you ever do anything besides rsync that involves ssh to that server. -- Mark J. Reed -- 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/