Typically an rsync over ssh will be invoked something like this:
rsync -av -e ssh ./localfile user@remotehost:/remotedir
...however, I'm looking to optimize the transfer, but I don't want to
modify the ssh_config, and would rather use a command line option that
would allow me to change the cipher from the default (3DES, I believe)
to something less complicated, and as such, would result in faster
transfer of files.
I can't find anything online about this, but ssh offers the -C option
to allow you change the cipher, but within rsync this doesn't seem to
work. Anyone have any hints? Oh, and please test your hints before
giving them...I've seem more than my share of speculative help, and
it's not +help+ful at all.
Thanks,
Patrick
rsync -av --rsync-path=/path/to/remote/rsync --rsh="ssh -c <cipher>"
./localfile user@remotehost:/path
The important thing here is to specify both the --rsync-path AND the
--rsh=. If you don't specify the --rsync-path, depending on how you
have your remote system configured, rsync may not find rsync on the
remote side. If you don't use --rsh=, you won't be able to specify the
"-c <cipher>" options (-e only supports one argument: the shell. No
options for that are allowed).
Anyway, live and learn.
Patrick
(snip well worded question, but then...)
> Oh, and please test your hints before
> giving them...I've seem more than my share of speculative help, and
> it's not +help+ful at all.
What an astonishingly rude way to ask people to help you with
your problem. Sorry, but a list of "look at this, that,
or the other" is most certainly more useful than not getting
that same list.
Oddly enough, you won't be getting a list of suggestions
from me, I'm strangely uninspired to spend any more time on you.
Sorry if I offended you. My intent is to try and stem the tide of
worthless usenet posts from folks that just don't take the time to
think about what they post before doing so. I'll try and be more
sensitive...
Patrick