diff options
author | adisbladis <adisbladis@gmail.com> | 2020-03-03 23:33:38 +0000 |
---|---|---|
committer | adisbladis <adisbladis@gmail.com> | 2020-11-24 02:47:07 +0100 |
commit | ba1fa0c60406a21b933f5cb1625e80ac0da84f50 (patch) | |
tree | 6732f838853445c77acbefce24c2167b9d9e797c /nixos/modules/services/networking/ssh/sshd.nix | |
parent | 5917193cefbac368bb979500e62bf6ace4cfa8b4 (diff) |
pam_ssh_agent_auth: Honour services.openssh.authorizedKeysFiles
If a system administrator has explicitly configured key locations this
should be taken into account by `sudo`.
Diffstat (limited to '')
-rw-r--r-- | nixos/modules/services/networking/ssh/sshd.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/ssh/sshd.nix b/nixos/modules/services/networking/ssh/sshd.nix index 1b745931c4fa..3cc77e4cb938 100644 --- a/nixos/modules/services/networking/ssh/sshd.nix +++ b/nixos/modules/services/networking/ssh/sshd.nix @@ -477,7 +477,7 @@ in # https://github.com/NixOS/nixpkgs/pull/10155 # https://github.com/NixOS/nixpkgs/pull/41745 services.openssh.authorizedKeysFiles = - [ ".ssh/authorized_keys" ".ssh/authorized_keys2" "/etc/ssh/authorized_keys.d/%u" ]; + [ "%h/.ssh/authorized_keys" "%h/.ssh/authorized_keys2" "/etc/ssh/authorized_keys.d/%u" ]; services.openssh.extraConfig = mkOrder 0 '' |