Skip to content

Tool for adding SSH keys via lastpass

Notifications You must be signed in to change notification settings

pivotal-ivan-wang/vkl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

vkl

Use your github ssh keys with ease!

Installation

  • Copy the script into your path.
  • Make the script executable. (chmod +x)

Dependencies

  • Lastpass-CLI
  • Github ssh private key saved in a secure note in Lastpass Productivity Tools folder.
  • .git-authors file present in home directory. File should be in git-duet format.

Usage

Call vkl with the initials of the user and the number of hours you intend to use your ssh keys. If the user is not logged into lastpass on the command line, they will be prompted to login.

Example: vkl ww 3

If it is before 6pm local time, omitting the number will autoset the key to expire at 6pm.

Example: vkl ww

Acknowledgements

Hat tip to Paul Nikonowicz and Andreas Voellmer who passed along earlier versions of this script.

FAQ

  • ssh_askpass: exec(/usr/X11R6/bin/ssh-askpass): No such file or directory
brew install ssh-askpass
sudo brew services start theseal/ssh-askpass/ssh-askpass
pushd /usr/X11r6/bin
sudo ln -s /usr/local/bin/ssh-askpass ssh-askpass
popd

About

Tool for adding SSH keys via lastpass

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%