Skip to content

Commit

Permalink
Document how to use SSH keys in vault (#121)
Browse files Browse the repository at this point in the history
Fix #116
  • Loading branch information
Mikescops authored Jul 27, 2023
1 parent 96cb501 commit 9488db9
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions documentation/pages/personal/vault.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,32 @@ You can change this behavior with the following command:
```sh copy
dcli configure disable-auto-sync true
```

## Use cases

### Use SSH Keys from your vault

This use case shows you how to use Dashlane to store your SSH keys and use them to connect to your servers.
This could be useful if you want to share SSH keys with your team.

Let's say you have generated a new SSH key pair and you want to store it in Dashlane.

```sh
# this is an example, use the parameters you want
ssh-keygen -t rsa -b 4096 -C "Dashlane SSH demo key"
```

Copy the private key to your clipboard and store it in a new secure note (named `SSH_DEMO_KEY` in our example) in Dashlane via the extension.
It is important to include the headers of the key (`-----BEGIN PRIVATE KEY-----` and `-----END PRIVATE KEY-----`) in the secure note.

Now, make sure your CLI is synchronized:

```sh copy
dcli sync
```

Once done, you can retrieve the private key from your vault and inject it in your SSH agent:

```sh copy
dcli n SSH_DEMO_KEY | ssh-add -
```

0 comments on commit 9488db9

Please sign in to comment.