Re: rsync over ssh using non standard ssh port

From: Richard E. Silverman (res_at_qoxp.net)
Date: 07/26/03


Date: 26 Jul 2003 00:05:14 -0400


>>>>> "NWR" == Neil W Rickert <rickert+nn@cs.niu.edu> writes:

    NWR> "Martin Pugh" <martin@hatstand.org.uk> writes:
>> Can anyone help? I'm trying to run rsync over ssh but using a
>> non-standard ssh port number. Can this be done?

    NWR> I think you can put the ssh command in quotes, thus allowing
    NWR> command line options. But it might be easier to put a shell
    NWR> script wrapper around ssh, with the wrapper supplying the port
    NWR> number option.

No need for anything this awkward; just specify the port in the client
config file, or use -o. E.g. for OpenSSH:

% scp -o port=1234 ...

-- OR --

[~/.ssh/config]
host foo
  port 1234

% scp foo:bar baz

-- 
  Richard Silverman
  res@qoxp.net