mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
services: openssh: Add 'accepted-environment' field.
* gnu/services/ssh.scm (<openssh-configuration>)[accepted-environment]: New field. (openssh-config-file): Honor 'acccepted-environment'. * doc/guix.texi (Networking Services): Document it. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
committed by
Ludovic Courtès
parent
3c27414968
commit
985934cb21
@@ -302,6 +302,10 @@ The other options should be self-descriptive."
|
||||
(subsystems openssh-configuration-subsystems
|
||||
(default '(("sftp" "internal-sftp"))))
|
||||
|
||||
;; list of strings
|
||||
(accepted-environment openssh-configuration-accepted-environment
|
||||
(default '()))
|
||||
|
||||
;; list of user-name/file-like tuples
|
||||
(authorized-keys openssh-authorized-keys
|
||||
(default '()))
|
||||
@@ -430,6 +434,9 @@ of user-name/file-like tuples."
|
||||
(format port "AuthorizedKeysFile \
|
||||
.ssh/authorized_keys .ssh/authorized_keys2 /etc/ssh/authorized_keys.d/%u\n")
|
||||
|
||||
(for-each (lambda (s) (format port "AcceptEnv ~a\n" s))
|
||||
'#$(openssh-configuration-accepted-environment config))
|
||||
|
||||
(for-each
|
||||
(match-lambda
|
||||
((name command) (format port "Subsystem\t~a\t~a\n" name command)))
|
||||
|
||||
Reference in New Issue
Block a user