git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/sshd: only include AuthorizedKeysCommand and AuthorizedKeysCommandUser options if explicitly set
commitf383fa344ee4067a1bcbe1f6db4eb21c89fc6ca4 authorAaron Andersen <aaron@fosslib.net> dateSat 14 Mar 2020, 19:50 (7 years ago) parent41742c8
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}