Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

rsync with ssh and a different cipher?

1,115 views
Skip to first unread message

pbec...@gmail.com

unread,
Feb 11, 2005, 7:02:57 PM2/11/05
to
I'm looking to find out if it's possible to change the cipher used with
ssh when rsync'ing over ssh.

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

pbec...@gmail.com

unread,
Feb 11, 2005, 7:22:08 PM2/11/05
to
Actually, I figured it out. Syntax follows:

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

Dave Hinz

unread,
Feb 11, 2005, 7:38:24 PM2/11/05
to
On 11 Feb 2005 11:02:57 -0800, pbec...@gmail.com <pbec...@gmail.com> wrote:

(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.

pbec...@gmail.com

unread,
Feb 11, 2005, 9:17:28 PM2/11/05
to
Dave,

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

Dave Hinz

unread,
Feb 11, 2005, 9:25:20 PM2/11/05
to

You would benefit from reading this:
http://www.catb.org/~esr/faqs/smart-questions.html


0 new messages