mirror of
https://github.com/borgbackup/borg.git
synced 2026-05-28 04:03:21 -04:00
Merge pull request #8331 from qyanu-pull-requests/3818simplifyexport-master
docs: borg-serve: simplify example of env in authorized_keys
This commit is contained in:
commit
f3cfc72b9d
1 changed files with 4 additions and 2 deletions
|
|
@ -33,10 +33,12 @@ locations like ``/etc/environment`` or in the forced command itself (example bel
|
|||
|
||||
# Set a BORG_XXX environment variable on the "borg serve" side
|
||||
$ cat ~/.ssh/authorized_keys
|
||||
command="export BORG_XXX=value; borg serve [...]",restrict ssh-rsa [...]
|
||||
command="BORG_XXX=value borg serve [...]",restrict ssh-rsa [...]
|
||||
|
||||
.. note::
|
||||
The examples above use the ``restrict`` directive. This does automatically
|
||||
The examples above use the ``restrict`` directive and assumes a POSIX
|
||||
compliant shell set as the user's login shell.
|
||||
This does automatically
|
||||
block potential dangerous ssh features, even when they are added in a future
|
||||
update. Thus, this option should be preferred.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue