Merge pull request #82621 from aanderse/ssh-fix

nixos/sshd: only include AuthorizedKeysCommand and AuthorizedKeysComm…
This commit is contained in:
adisbladis
2020-03-15 00:09:34 +00:00
committed by GitHub
@@ -505,8 +505,10 @@ in
PrintMotd no # handled by pam_motd
AuthorizedKeysFile ${toString cfg.authorizedKeysFiles}
AuthorizedKeysCommand ${cfg.authorizedKeysCommand}
AuthorizedKeysCommandUser ${cfg.authorizedKeysCommandUser}
${optionalString (cfg.authorizedKeysCommand != "none") ''
AuthorizedKeysCommand ${cfg.authorizedKeysCommand}
AuthorizedKeysCommandUser ${cfg.authorizedKeysCommandUser}
''}
${flip concatMapStrings cfg.hostKeys (k: ''
HostKey ${k.path}