diff options
author | Wayne Davison <wayne@opencoder.net> | 2021-12-30 12:28:16 -0800 |
---|---|---|
committer | Wayne Davison <wayne@opencoder.net> | 2021-12-30 12:29:09 -0800 |
commit | 8e77ece0eec633126f546f75c67f62837427e9c1 (patch) | |
tree | 5d44a690688cd7c7b11e8315f7cbbb9bab79da80 /support | |
parent | ffec7fe109efda650988ff993c989c2bc9f24dff (diff) | |
download | rsync-8e77ece0eec633126f546f75c67f62837427e9c1.tar.gz |
Tweak the rrsync man page.
Diffstat (limited to 'support')
-rw-r--r-- | support/rrsync.1.md | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/support/rrsync.1.md b/support/rrsync.1.md index b945ecf0..4aedfae9 100644 --- a/support/rrsync.1.md +++ b/support/rrsync.1.md @@ -14,9 +14,9 @@ A user's ssh login can be restricted to only allow the running of an rsync transfer in one of two easy ways: forcing the running of the rrsync script or forcing the running of an rsync daemon-over-ssh command. -To use the rrsync script, add a prefix like one of the following (followed by a -space) in front of each ssh-key line in the user's `~/.ssh/authorized_keys` -file that should be restricted: +To use the rrsync script, edit the user's `~/.ssh/authorized_keys` file and add +a prefix like one of the following (followed by a space) in front of each +ssh-key line that should be restricted: > ``` > command="rrsync DIR" @@ -29,9 +29,9 @@ may want to copy the script to a local bin dir with a unique name if you want to have multiple configurations. One or more rrsync options can be specified prior to the `DIR` if you want to further restrict the transfer. -To use an rsync daemon setup, add one of the following prefixes (followed by a -space) in front of each ssh-key line in the user's `~/.ssh/authorized_keys` -file that should be restricted: +To use an rsync daemon setup, edit the user's `~/.ssh/authorized_keys` file and +add a prefix like one of the following (followed by a space) in front of each +ssh-key line that should be restricted: > ``` > command="rsync --server --daemon ." @@ -43,6 +43,10 @@ with the appropriate path and option restrictions. If the `--config` option is omitted, it defaults to `~/rsyncd.conf`. See the `rsyncd.conf` man page for details of how to configure an rsync daemon. +When using rrsync, there can be just one restricted dir per authorized key. A +daemon setup, on the other hand, allows multiple module names inside the config +file, each one with its own path setting. + The remainder of this man page is dedicated to using the rrsync script. # OPTION SUMMARY |