This is the mail archive of the
mailing list for the Cygwin project.
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
- Date: Mon, 30 Mar 2009 13:58:28 -0400
- Subject: Re: Fw: How to change the default outgoing port from 22 in cygwin/ssh
- References: <CB8CBF2438A341138708D9783EEC2DA3@JOHN>
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:
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
is presented to rsync as a single argument.
-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 <email@example.com>
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html