rsync over ssh without giving the user access to a shell?

jw schultz jw at
Mon Sep 15 09:35:01 EST 2003

On Sun, Sep 14, 2003 at 10:48:52AM +0000, rsync-mail at wrote:
> What is the best way to give a remote user the ability to use rsync via
> ssh without also giving them shell access?
> I want the rsync user to authenticate via ssh.  I want to protect their
> rsync session with ssh.  However, I do not want to give them access to a
> shell on the Linux server where rsyncd is running.
> Any recommendations would be appreciated.

Put a script as a forced command in the authorized_keys
file.  Some examples can be found by googling for

This is getting to be a FAQ.  It could use a mini-howto
complete with an example script.

	J.W. Schultz            Pegasystems Technologies
	email address:		jw at

		Remember Cernan and Schmitt

More information about the rsync mailing list