Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Navigate to a folder where you want to keep the ssh-askpass repository. For example, your home directory:

    Code Block
    $ cd ~


  2. Using git pull down the repository locally

    Code Block
    $ git clone https://github.com/theseal/ssh-askpass.git ssh-askpass


    Note
    titleNote 2

    This will probably pop up requesting to install command line developer tools. Go ahead and install it.


  3. Set up environment to work with ask-pass:

    Expand
    titleMojave 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 the DISPLAY environment variable be set in order to execute ssh-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

...