Skip to content

Script for downloading and adding ssh-keys from lastpass to your ssh-agent.

License

Notifications You must be signed in to change notification settings

bellstrand/lastpass-ssh-add

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lastpass-ssh-add

Script for downloading and adding ssh-keys from lastpass to your ssh-agent.

Install lastpass cli and login

Mac:
brew update && brew install lastpass-cli

Other:
https://github.com/lastpass/lastpass-cli

Login:
lpass login [email protected]

Download and move to your PATH, (/usr/local/bin) for example.

curl -O https://raw.githubusercontent.com/bellstrand/lastpass-ssh-add/master/lastpass-ssh-add.sh && mv lastpass-ssh-add.sh /usr/local/bin/lastpass-ssh-add

In Lastpass save the keys as "SSH Key" and put the the content of your private key inside the "Private Key" field.

After that you can run

lastpass-ssh-add

to scan and add all keys to your ssh-agent.

About

Script for downloading and adding ssh-keys from lastpass to your ssh-agent.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages