Skip to content

Commit

Permalink
add passphrase example to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Dec 23, 2022
1 parent 9ce65f9 commit 3905ace
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ $ cat key.txt
AGE-SECRET-KEY-1K3VN4N03PTHJWSJSCCMQCN33RY5FSKQPJ4KRRTG3JMQUYE0TUSEQEDH6V8
```

If you private key is encrypted, you can export the password in `SSH_TO_AGE_PASSPHRASE`

``` console
$ read -s SSH_TO_AGE_PASSPHRASE; export SSH_TO_AGE_PASSPHRASE
$ ssh-to-age -private-key -i $HOME/.ssh/id_ed25519 -o key.txt
```

- Exports the public key:

```console
Expand Down

0 comments on commit 3905ace

Please sign in to comment.