From b30e6c681eaf723ff837bcd43612777e1bc1a3a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20=E2=80=9CAd=C3=A6dra=E2=80=9D=20Hamel?= Date: Thu, 18 Apr 2024 01:16:54 +0200 Subject: [PATCH] Document askpass support --- README.asciidoc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.asciidoc b/README.asciidoc index e7e01c5..7bf24e0 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -71,3 +71,20 @@ SecurityKeyProvider /Users/[user]/.local/state/nix/profiles/profile/libexec/libs ---- Relaunch a shell, and you should be able to `ssh-add -K`. + +== Askpass support + +If you want to use an askpass program, you can simply modify the agent file by adding the following lines: + +[,plist] +---- +EnvironmentVariables + + SSH_ASKPASS + /usr/local/bin/ssh-askpass + DISPLAY + :0 + +---- + +Some `ssh-askpass` mac implementations will ask you to include their own agent to modify the SSH agent environment. This is not needed in this case as we have our agent we can directly modify (and that would not pickup the variables from the generic modification anyway).