Merge pull request #82621 from aanderse/ssh-fix
nixos/sshd: only include AuthorizedKeysCommand and AuthorizedKeysComm…
This commit is contained in:
commit
58f2d11810
@ -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…
x
Reference in New Issue
Block a user