Skip to content

EventScripts for automatically add keys from your Yubikey to SSH Agent

Notifications You must be signed in to change notification settings

vsegfault/osx-yubikey-ssh-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

osx-yubikey-ssh-helper

EventScripts to automatically add keys to SSH Agent from your Yubikey.

Requirements

EventScripts

OpenSC

Yubikey or other PKCS11 compatible token

Installation

  1. Checkout git repository
  2. Copy askpass.sh to /usr/local/bin
  3. Create new keychain with name yb
  4. In Keychain yb create new item "application password" with name yb. Password is your password for Yubikey.
  5. Compile scripts
osacompile -o insert-yubikey.scpt insert-yubikey.applescript
osacompile -o remove-yubikey.scpt remove-yubikey.applescript
  1. Copy insert-yubikey.scpt and remove-yubikey.scpt in to EventScripts script folder.
  2. Add two events:
  3. USB device attached -> insert-yubikey.scpt
  4. USB device removed -> remove-yubikey.scpt
  5. Insert your Yubikey

About

EventScripts for automatically add keys from your Yubikey to SSH Agent

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published