diff --git a/hosts/tadpole/modules/ssh/default.nix b/hosts/tadpole/modules/ssh/default.nix index 55d5d37..dbaba29 100644 --- a/hosts/tadpole/modules/ssh/default.nix +++ b/hosts/tadpole/modules/ssh/default.nix @@ -48,6 +48,7 @@ in mode = "0755"; text = '' #!${pkgs.bash}/bin/bash + [ "$1" = "alex" ] || exit 0 for file in ${authorizedKeysPath}/*; do ${pkgs.coreutils}/bin/cat "$file" done @@ -71,7 +72,7 @@ in KbdInteractiveAuthentication = false; }; - authorizedKeysCommand = "/etc/ssh/authorized_keys_command"; + authorizedKeysCommand = "/etc/ssh/authorized_keys_command %u"; authorizedKeysCommandUser = "root"; }; };