370 B
370 B
sync-keypairs
Backs up all SSH keypairs into Bitwarden.
Prerequisites
- bitwarden-cli installed
- Run
bw loginfirst
Usage
./sync-keypairs.sh
This will unlock Bitwarden, sync your vault, and save each SSH keypair as a login item with attachments in ssh-keys/<hostname>/<username>.