- You need to have the Bitwarden CLI tool installed and available in the
$PATH
asbw
. ssh-agent
must be running in the current session.
Fetches SSH keys stored in Bitwarden vault and adds them to ssh-agent
.
- Run,
./bw_add_sshkeys.py
- Enter your Bitwarden credentials, if a Bitwarden vault session is not already set.
(optional) Enter your SSH keys' passphrases.
- Create a folder called
ssh-agent
(can be overridden on the command line). - Add an new secure note to that folder.
- Upload the private key as an attachment.
- Add the custom field
private
(can be overridden on the command line), containing the file name of the private key attachment. - Add the custom field
passphrase
, containing the passphrase of the private key - Repeat steps 2-5 for each subsequent key