From 5bce73301de92f89202555b4db1b96401bfaecdb Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Fri, 10 Oct 2025 13:44:15 +0200 Subject: [PATCH] docs: borg serve: recommend using a simple shell, fixes #8318 --- docs/usage/serve.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/usage/serve.rst b/docs/usage/serve.rst index 1d2452083..a0bd56b35 100644 --- a/docs/usage/serve.rst +++ b/docs/usage/serve.rst @@ -49,6 +49,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.