From 77dbf13e9d6b0a6e05f93421d1caf6a33dc6d6fc Mon Sep 17 00:00:00 2001 From: Max-Julian Pogner Date: Sun, 5 Jan 2025 14:48:11 +0100 Subject: [PATCH] docs: borg serve: recommend using a simple shell (closes #3818) --- docs/usage/serve.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/usage/serve.rst b/docs/usage/serve.rst index 9294ba1926..19d2f6e754 100644 --- a/docs/usage/serve.rst +++ b/docs/usage/serve.rst @@ -48,6 +48,7 @@ Details about sshd usage: `sshd(8) `_ +to execute the command configured through the ``authorized_keys`` file +using ``"$SHELL" -c "$COMMAND"``, +setting a minimal shell implementation reduces the attack surface +compared to when a feature-rich and complex shell implementation is +used.