You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* No need to log out; you can add keys to the agent with `ssh-add -c`
38
109
39
110
## Enabling keyboard navigation
40
111
For security reasons ssh-askpass defaults to cancel since it's too easy to
@@ -54,6 +125,21 @@ ssh-keys. To make it easier to press `OK`:
54
125
55
126
Now you can press ⇥+spacebar to press `OK`.
56
127
128
+
## Why install XQuartz?
129
+
130
+
[Sonoma 14.6 and later block environment variables set by `launchctl setenv` from system LaunchAgents](https://github.com/theseal/ssh-askpass/issues/54#issuecomment-2264396356)
131
+
(eg: Apple's `ssh-agent`).
132
+
133
+
However, these changes **do not** affect environment variables set by
134
+
non-system LaunchAgents using `SecureSocketWithKey`.
135
+
136
+
When XQuartz' LaunchAgent is configured correctly, it instructs `launchd` to
137
+
setup a socket and expose it with the `DISPLAY` environment variable.
138
+
139
+
This also means you can't rely on the `SSH_ASKPASS` environment variable to
140
+
tell Apple's `ssh-agent` where `ssh-askpass` is - it must be available at
141
+
the default location (`/usr/X11R6/bin/ssh-askpass`).
0 commit comments