17 lines
370 B
Markdown
17 lines
370 B
Markdown
# sync-keypairs
|
|
|
|
Backs up all SSH keypairs into Bitwarden.
|
|
|
|
## Prerequisites
|
|
|
|
- [bitwarden-cli](https://github.com/bitwarden/clients/tree/main/apps/cli) installed
|
|
- Run `bw login` first
|
|
|
|
## Usage
|
|
|
|
```bash
|
|
./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>`.
|