On Mon, Apr 29, 2002 at 06:53:54PM -0400, Administrator wrote:
> If someone could show me how to tell rsync to use a specific ssh port I would really 
>appreciate it.

One solution would be to create an ssh wrapper script, like this:

    #!/bin/sh
    exec ssh -p 2222 "$@"

and refer to it instead of ssh using -e (i.e. ``-e myssh'').

Another solution would be to consult the ssh manpage and look at the ways one
can force ssh to use different options on a per host basis. In this case you
would use the Port directive in /etc/ssh/ssh_config or ~/.ssh/config:

    Host myhost
        Port 2222

-- 
Jos Backus                 _/  _/_/_/        Santa Clara, CA
                          _/  _/   _/
                         _/  _/_/_/             
                    _/  _/  _/    _/
[EMAIL PROTECTED]     _/_/   _/_/_/            use Std::Disclaimer;

-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html

Reply via email to