Skip to content

Bash script to automatically search 1Password Cloud for specified keyword and use it to ssh-add SSH keys

License

Notifications You must be signed in to change notification settings

lukaskuzmiak/SSHKeysVia1PasswordCloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SSHKeysVia1PasswordCloud

Successor of https://github.com/lukaskuzmiak/SSHKeysVia1Password

A (less) desperate attempt to ssh-add all my SSH keys to SSH agent on MacOS using passphrases saved in 1Password.

Prerequisites

Usage

Put ssh-add-pass-helper.sh into your $HOME directory.

Create $HOME/.op.secrets in the following format (line-by-line, in this order):

<subdomain> (eg. foo.1password.com will put foo)
<email> (email used to login)
<secret key>

Adjust last lines of SSHKeysVia1PasswordCloud.sh to fit your SSH keys paths and 1Password item names - I use "Password" type for this, for any other you need to adjust the jq parsing routine in the code.

Miscellaneous

Any code improvements and/or security concerns are more than welcome.

About

Bash script to automatically search 1Password Cloud for specified keyword and use it to ssh-add SSH keys

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages