Re: Using rsync over SSH
I'm happy to be corected here, but if you use rsync --server --daemon, doesn't that exclude ssh from the equation?
In order to use ssh, do you not need
rsync -e ssh ....... from the instigating end, which then talks to the ssh deamon, not the rsync deamon?
in which the connect
On Fri, 2004-05-28 at 15:12, Bill Moseley wrote:
I need to setup a way to rsync from a Solaris machine to a Debian
machine. I don't have root on the Solaris box and I don't want the
Debian user to have access to the Solaris machine other than to rsync
some files in read_only mode. I want to use rsync over ssh, and I'll
have to install ssh locally in my account.
Now, what I think I need to do is setup a single-use (public) key that
runs rsync. So in the authorized_keys file use
command='/path/to/rsync --server --daemon --config=/path/to_confg .' [...]
That way the Debian box can connect without needing a (unix) login, but
they will only be able to run the rsync program when they connect.
Does that seem like the correct method?
Is there any reason to then use a rsync username/password to control
access if I'm using ssh to authenticate?
Finally, it turns out the the Solaris machine is not running OpenSSH,
and instead running SSH Corp's (ssh.com) version. Does anyone know how
to setup single-use keys with that version of SSH? SSH Corp's version
doesn't use an authorized_keys file.