Fw: How to change the default outgoing port from 22 in cygwin/ssh

John MacKenzie johnner@gmail.com
Mon Mar 30 21:19:00 GMT 2009


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/



More information about the Cygwin mailing list