Skip to content

About

ssh-askpass for macOS

Topics

Resources

Stars

222 stars

Watchers

14 watching

Forks

Latest commit

 

History

81 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

ssh-askpass

ssh-askpass for OS X/macOS. Works in (at least) 10.7+ (including Monterey)

Used to accept (or deny) the use of the private key(s) added to the SSH authentication agent with ssh-add -c.

Screenshot

If you’re having trouble with ssh-askpass after OS upgrade, please follow the installation steps again.

Installation

  • Run:

    $ brew install theseal/ssh-askpass/ssh-askpass
    
  • Follow caveats

  • Install:

    $ sudo port install ssh-askpass
    

Without Homebrew/MacPorts

  • Run:
$ cp ssh-askpass /usr/local/bin/
$ cp ssh-askpass.plist ~/Library/LaunchAgents/
$ launchctl load -w ~/Library/LaunchAgents/ssh-askpass.plist
  • No need to log out; you can add keys to the agent with ssh-add -c

Enabling keyboard navigation

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 then Keyboard.

Pre 10.11

  • Under the Keyboard tab, click on All controls.

10.11-10.14

  • Under the Shortcuts tab, click on All controls.

10.15+

  • At the bottom of the Shortcuts tab, check option Use keyboard navigation to move focus between controls.

Now you can press ⇥+spacebar to press OK.

License

ISC license

Contributors

About

ssh-askpass for macOS

Topics

Resources

Stars

222 stars

Watchers

14 watching

Forks

Releases

Packages

Used by

Contributors

Languages