delorie.com/archives/browse.cgi | search |
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: | <CB8CBF2438A341138708D9783EEC2DA3@JOHN> |
References: | <CB8CBF2438A341138708D9783EEC2DA3 AT JOHN> |
Date: | Mon, 30 Mar 2009 13:58:28 -0400 |
Message-ID: | <f60fe000903301058y39a5e760o1375531965e48a7@mail.gmail.com> |
Subject: | Re: Fw: How to change the default outgoing port from 22 in cygwin/ssh |
From: | "Mark J. Reed" <markjreed AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
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 <markjreed AT gmail DOT com> -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |