Small python script to load bitwarden-store ssh keys into ssh-agent
Find a file
2020-03-07 17:41:19 +00:00
README.md Initial commit 2020-03-07 17:22:01 +00:00
ssh.py Initial commit 2020-03-07 17:22:01 +00:00
start.sh fix for multiple ssh keys 2020-03-07 17:41:19 +00:00

Bitwarden SSH Agent

Requirements

  • You need to have the bitwarden cli bw installed
  • ssh-agent must be running in the current session

What it does?

  • connects to bitwarden using the bitwarden cli
  • looks for a folder called ssh-agent
  • loads the ssh key for each item in that folder

How to use it

$ ./start.sh

Fill in you login information

Storing the keys in BitWarden

  1. Create a folder called 'ssh-agent'
  2. Add an new secure note to that folder
  3. Upload the private_key as an attachment
  4. add the custom field private, containing the private key filename

Improvements to be made

  • Find a way to extract the attachment from bitwarden in memory, instead of creating a file for it