nixos/ssh: fix passing arguments to ssh-askpass
The wrapper for ssh-askpass did not pass arguments to the real ssh-askpass, therefore the generic "Please enter your authentication passphrase" prompt was displayed for all requests (including the key usage confirmation requests, which don't need the passphrase), and some important information such as the key name was not displayed.
This commit is contained in:
parent
28b1fb9630
commit
20b1d07a4f
|
@ -14,7 +14,7 @@ let
|
|||
''
|
||||
#! ${pkgs.runtimeShell} -e
|
||||
export DISPLAY="$(systemctl --user show-environment | ${pkgs.gnused}/bin/sed 's/^DISPLAY=\(.*\)/\1/; t; d')"
|
||||
exec ${askPassword}
|
||||
exec ${askPassword} "$@"
|
||||
'';
|
||||
|
||||
knownHosts = map (h: getAttr h cfg.knownHosts) (attrNames cfg.knownHosts);
|
||||
|
|
Loading…
Reference in a new issue