From 1cde2386bc8a04fd6213ef745719ad918c66cecb Mon Sep 17 00:00:00 2001 From: Christopher Mills Date: Jan 03 2021 19:06:10 +0000 Subject: Update ksshaskpass.spec with SSH_ASKPASS_REQUIRE Currently required to enter pasphrases for ssh keys at least once per KDE Plasma session when using **konsole**. `ssh-add -l` lists the added keys and further use of **ssh** in that session does not require a key's passphrase again. On logging out/restart and starting a new session, each key's passphrase is required to be entered again. Recommend the default behaviour is changed so to allow storage of passphrase in the **kwallet* system. As per `man ssh-add`: "SSH_ASKPASS_REQUIRE allows further control over the use of an askpass program. If this variable is set to “never” then ssh-add will never attempt to use one. If it is set to “prefer”, then ssh-add will prefer to use the askpass program instead of the TTY when requesting passwords. Finally, if the variable is set to “force”, then the askpass program will be used for all passphrase input regardless of whether DISPLAY is set." Environment variable `SSH_ASKPASS_REQUIRE=prefer` added ensuring when using **konsole** the password dialog is displayed and passphrases are added to **kwallet** system. --- diff --git a/ksshaskpass.spec b/ksshaskpass.spec index 897157d..bbdd38c 100644 --- a/ksshaskpass.spec +++ b/ksshaskpass.spec @@ -49,6 +49,8 @@ mkdir -p %{buildroot}%{_sysconfdir}/xdg/plasma-workspace/env/ cat > %{buildroot}%{_sysconfdir}/xdg/plasma-workspace/env/ksshaskpass.sh << EOF SSH_ASKPASS=%{_kf5_bindir}/ksshaskpass export SSH_ASKPASS +SSH_ASKPASS_REQUIRE=prefer +export SSH_ASKPASS_REQUIRE EOF