git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #82621 from aanderse/ssh-fix

nixos/sshd: only include AuthorizedKeysCommand and AuthorizedKeysComm…

commit58f2d11810c989ff689a936066c94d16402ef636 authoradisbladis <adisbladis@gmail.com> dateSun 15 Mar 2020, 00:09 (7 years ago) parent41742c8f383fa3
1 file changed+4−2
nixos/modules/services/networking/ssh/sshd.nix+4−2
nixos/modules/services/networking/ssh/sshd.nix+4−2
@@ -505,8 +505,10 @@ in
505505 PrintMotd no # handled by pam_motd
506506
507507 AuthorizedKeysFile ${toString cfg.authorizedKeysFiles}
508− AuthorizedKeysCommand ${cfg.authorizedKeysCommand}
509− AuthorizedKeysCommandUser ${cfg.authorizedKeysCommandUser}
508+ ${optionalString (cfg.authorizedKeysCommand != "none") ''
509+ AuthorizedKeysCommand ${cfg.authorizedKeysCommand}
510+ AuthorizedKeysCommandUser ${cfg.authorizedKeysCommandUser}
511+ ''}
510512
511513 ${flip concatMapStrings cfg.hostKeys (k: ''
512514 HostKey ${k.path}