Re: passwordless rsync?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 29May2015 01:40, suvayu ali <fatkasuvayu+linux@xxxxxxxxx> wrote:
I think the magic incantation for me was command="somecommand" is
actually the whole command, with all the arguments.  From the man page,
this wasn't clear to me.  I was trying to setup passwordless root login
with PermitRootLogin set to forced-commands-only for backups with
rsnapshot.

Btw, to allow multiple commands from the same host, I guess I should
have multiple lines for the same public key?  Also, any ideas what
should be the command to allow rsnapshot backups?  I guess I need to
figure out what are the arguments passed onto rsync by rsnapshot, and in
which order.

Might I also suggest you consider reading "man rsync", specificly the section "USING RSYNC-DAEMON FEATURES VIA A REMOTE-SHELL CONNECTION". In fact, the whole section starting at "CONNECTING TO AN RSYNC DAEMON"?

This details invoking rsync in daemon mode, which lets you use an rsyncd.conf file to control what is available (see "man rsyncd.conf").

Then you just put a suitable "rsync daemon mode with specified (or default) rsyncd.conf file" in the command="..." part of your authorized_keys file.

This may be a far more controllable and flexible way to give rsync access, because you can use the .conf file at the server end to decide what may be backed up, and the rsync command in all its glory at the client end to decide what to ask for in a given run.

Cheers,
Cameron Simpson <cs@xxxxxxxxxx>
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux