Re: rsync over ssh using non standard ssh port
From: Richard E. Silverman (res_at_qoxp.net)
Date: 07/26/03
- Next message: Richard E. Silverman: "Re: Need help installing SSH tunnel"
- Previous message: Andrew Schulman: "Re: Need help installing SSH tunnel"
- In reply to: Neil W Rickert: "Re: rsync over ssh using non standard ssh port"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
- Next message: Richard E. Silverman: "Re: Need help installing SSH tunnel"
- Previous message: Andrew Schulman: "Re: Need help installing SSH tunnel"
- In reply to: Neil W Rickert: "Re: rsync over ssh using non standard ssh port"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]