<div dir="ltr">On Tue, Sep 24, 2013 at 12:33 PM, Andrew Daviel <span dir="ltr"><<a href="mailto:advax@triumf.ca" target="_blank">advax@triumf.ca</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><span style="color:rgb(34,34,34)">That's a Perl script to "restrict rsync to subdirectory declared in .ssh/authorized_keys".</span></div>


</blockquote><div><br></div><div>The rrsync is a perl script that limits the user to only running authorized rsync commands, including restricting options, optionally making it read-only, optionally restricting directories, etc.  It's similar to rssh, but only supports rsync.</div>


<div><br></div><div>The problem you're encountering with rssh is a very old one where it was rejecting the use of -e combined with --server, which is not correct (the correct method is to reject any rsync command that doesn't have --server as the first option, and then no checking of the -e option is needed). This was pointed out to them years ago, and was fixed in various debian/red hat/etc packaged versions of rssh.  If you don't have a fixed version, you can find some fixed source code via those source packages. Or choose to switch to using the rrsync script.</div>


</div></div><div class="gmail_extra"><br clear="all"><div>..wayne..</div></div></div>