mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/sshd: only include AuthorizedKeysCommand and AuthorizedKeysCommandUser options if explicitly set
This commit is contained in:
parent
41742c85ec
commit
f383fa344e
1 changed files with 4 additions and 2 deletions
|
@ -505,8 +505,10 @@ in
|
||||||
PrintMotd no # handled by pam_motd
|
PrintMotd no # handled by pam_motd
|
||||||
|
|
||||||
AuthorizedKeysFile ${toString cfg.authorizedKeysFiles}
|
AuthorizedKeysFile ${toString cfg.authorizedKeysFiles}
|
||||||
AuthorizedKeysCommand ${cfg.authorizedKeysCommand}
|
${optionalString (cfg.authorizedKeysCommand != "none") ''
|
||||||
AuthorizedKeysCommandUser ${cfg.authorizedKeysCommandUser}
|
AuthorizedKeysCommand ${cfg.authorizedKeysCommand}
|
||||||
|
AuthorizedKeysCommandUser ${cfg.authorizedKeysCommandUser}
|
||||||
|
''}
|
||||||
|
|
||||||
${flip concatMapStrings cfg.hostKeys (k: ''
|
${flip concatMapStrings cfg.hostKeys (k: ''
|
||||||
HostKey ${k.path}
|
HostKey ${k.path}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue