Explorar o código

Added SSH key options to the usage example.

Piotr Pawlow %!s(int64=9) %!d(string=hai) anos
pai
achega
987aaa34df
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      docs/usage.rst

+ 2 - 1
docs/usage.rst

@@ -419,9 +419,10 @@ Examples
 ::
 
     # Allow an SSH keypair to only run borg, and only have access to /mnt/backup.
+    # Use key options to disable unneeded and potentially dangerous SSH functionality.
     # This will help to secure an automated remote backup system.
     $ cat ~/.ssh/authorized_keys
-    command="borg serve --restrict-to-path /mnt/backup" ssh-rsa AAAAB3[...]
+    command="borg serve --restrict-to-path /mnt/backup",no-pty,no-agent-forwarding,no-port-forwarding,no-X11-forwarding,no-user-rc ssh-rsa AAAAB3[...]
 
 
 .. include:: usage/upgrade.rst.inc