Unix administration - rsync with ssh and a different cipher?

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > February 2005 > rsync with ssh and a different cipher?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author rsync with ssh and a different cipher?
pbeckhelm@gmail.com

2005-02-11, 6:03 pm

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

pbeckhelm@gmail.com

2005-02-11, 6:03 pm

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

2005-02-11, 6:03 pm

On 11 Feb 2005 11:02:57 -0800, pbeckhelm@gmail.com <pbeckhelm@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.
pbeckhelm@gmail.com

2005-02-11, 6:03 pm

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

2005-02-11, 6:03 pm

On 11 Feb 2005 13:17:28 -0800, pbeckhelm@gmail.com <pbeckhelm@gmail.com> wrote:
> 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...


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


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com