ssh-askpass for OS X. Works in (at least) 10.7+ (including El Capitan)
Used to accept (or deny) the use of the private key(s) added to the SSH authentication agent with ssh-add -c
.
-
Run:
$ brew tap theseal/ssh-askpass $ brew install ssh-askpass
-
Follow caveats
$ sudo ln -s $PWD/ssh-askpass /usr/libexec/ssh-askpass
-
Run:
$ sudo mkdir -p /usr/X11R6/bin $ sudo ln -s $PWD/ssh-askpass /usr/X11R6/bin/ssh-askpass
For security reasons ssh-askpass defaults to cancel since it's too easy to
press spacebar and accept a connection or other actions which might use
ssh-keys. To make it easier to press OK
:
- Go to
System Preferences
and thenKeyboard
.
- Under the
Keyboard
tab, click onAll controls
.
- Under the
Shortcuts
tab, click onAll controls
.
Now you can press ⇥+spacebar to press OK
.
ISC license