mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-05-27 11:32:21 +02:00
services: openssh: Extensions provide extra authorized keys.
* gnu/services/ssh.scm (extend-openssh-authorized-keys): New procedure. (openssh-service-type)[compose, extend]: New fields. * doc/guix.texi (Networking Services): Document the extension.
This commit is contained in:
@@ -10210,6 +10210,15 @@ shell daemon, @command{sshd}. Its value must be an
|
||||
@end example
|
||||
|
||||
See below for details about @code{openssh-configuration}.
|
||||
|
||||
This service can be extended with extra authorized keys, as in this
|
||||
example:
|
||||
|
||||
@example
|
||||
(service-extension openssh-service-type
|
||||
(const `(("charlie"
|
||||
,(local-file "charlie.pub")))))
|
||||
@end example
|
||||
@end deffn
|
||||
|
||||
@deftp {Data Type} openssh-configuration
|
||||
@@ -10303,6 +10312,9 @@ keys. For example:
|
||||
registers the specified public keys for user accounts @code{rekado},
|
||||
@code{chris}, and @code{root}.
|
||||
|
||||
Additional authorized keys can be specified @i{via}
|
||||
@code{service-extension}.
|
||||
|
||||
Note that this does @emph{not} interfere with the use of
|
||||
@file{~/.ssh/authorized_keys}.
|
||||
@end table
|
||||
|
||||
Reference in New Issue
Block a user