...
Navigate to a folder where you want to keep the ssh-askpass repository. For example, your home directory:
Code Block $ cd ~
Using git pull down the repository locally
Code Block $ git clone https://github.com/theseal/ssh-askpass.git ssh-askpass
Note title Note 2 This will probably pop up requesting to install command line developer tools. Go ahead and install it.
Set up environment to work with ask-pass:
Expand title Mojave users here Current version doesn't appear to work. You will need to revert to an older version of the applescript.
Code Block cd ssh-askpass git checkout -b v1.2.2 v1.2.2 <RUN THROUGH THE ORIGINAL STEPS BELOW> Reverting the git back to master: git checkout master git branch -d v1.2.2
Code Block $ cd ssh-askpass $ sudo cp ssh-askpass /usr/local/bin/ $ cp ssh-askpass.plist ~/Library/LaunchAgents/ $ launchctl load -w ~/Library/LaunchAgents/ssh-askpass.plist
Note Nothing will happen here, continue onward to Usage
Note It seems that
ssh-add
requires that theDISPLAY
environment variable be set in order to executessh-askpass
. There are a couple of ways to accomplish this, the easiest is to just install xquartz. If you want you can also add it to your profile.
Usage
OpenSC + ssh-askpass
...