how to rsync over ssh, but login is not permit

Daniel Berhane DBerhane at bmj.com
Thu Sep 16 11:07:16 GMT 2004


Please find a good online tutorial how to do rsync via ssh without being 
prompted for password (via public/private keys) at:

http://www.jdmz.net/ssh/

regards,
Daniel.

rsync-bounces+dberhane=bmj.com at lists.samba.org wrote on 16/09/2004 
11:30:11:

> Hi, I want to backup my system via rsync over ssh, but login is *not*
> permited! 
> 
> According to the sshd_config man page, I need to set PermitRootLogin to 
> forced-commands-only. 
> 
> In order to run follow command, how to set command option in 
authorized_keys? 
> 
> # rsync -avz server:/etc /backup
> 
> Best Regards! 
> Jacky Kim
> .
> 
> >On Thu, Sep 09, 2004 at 06:03:49PM +0800, Jacky Kim wrote:
> >> If the shell of user alpha is /sbin/nologin
> >> When use rsync with ssh mode, is it possible for alpha to use rsync 
> >> to backup data?
> >
> >This is an ssh question:  you're asking if there is a way to limit what
> >commands the user runs.  The answer is yes, there are ways to make sure
> >that the user can only run a limited set of commands (even constricting
> >what options can be sent), but I don't know the details.  By default, 
if
> >the user has a shell of /sbin/nologin, then ssh can't be used by that
> >user to run any commands.  See the ssh docs for more details.  Once you
> >get ssh configured as you desire, rsync can use it.
> >
> >..wayne..
> >
> 
> 
> 
> -- 
> To unsubscribe or change options: http://lists.samba.
> org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

> ForwardSourceID:NT00025B22 
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the rsync mailing list