From 048ff2afbac6f89c6616c583c8707373b638d67f 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) Co-authored-by: Thomas Waldmann --- docs/usage/serve.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/usage/serve.rst b/docs/usage/serve.rst index 9294ba192..acd8c876d 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.