Re: sshfs: problem with rsync
On 2015-04-07 12:55:04 +0200, Markus Schönhaber wrote:
> Am 07.04.2015 um 12:49 CEST Vincent Lefevre:
>
> > On 2015-04-05 21:57:36 +0200, Pierre Frenkiel wrote:
> >> my Android ssh server uses the port 2223, and I could not find
> >> how to force rsync to use this port.
> >
> > The port is a SSH parameter, not a rsync option. So, use .ssh/config
> > for that.
>
> Or use rsync's --rsh option, like
> rsync --rsh "ssh -p 2223" ...
The advantage of using .ssh/config is that it will work for any
SSH-based command, not just rsync. And you don't have to remember
to use the --rsh option.
--
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Reply to: