1
0
Fork 0
mirror of https://github.com/Mic92/sops-nix.git synced 2024-12-14 11:57:52 +00:00

Merge pull request #195 from winterqt/remove-ssh-key-decryption

README: remove mention of decrypting SSH private key
This commit is contained in:
Jörg Thalheim 2022-06-28 08:48:43 +02:00 committed by GitHub
commit 25ae48cbf2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -195,20 +195,6 @@ $ nix-shell -p ssh-to-age --run "ssh-to-age < ~/.ssh/id_ed25519.pub"
$ nix-shell -p ssh-to-age --run "ssh-add -L | ssh-to-age"
```
If you get this,
```console
failed to parse ssh private key: ssh: this private key is passphrase protected
```
then your SSH key is encrypted with your password and you need to create an unencrypted copy temporarily:
```console
$ cp $HOME/.ssh/id_ed25519 /tmp/id_ed25519
$ ssh-keygen -p -N "" -f /tmp/id_ed25519
$ nix-shell -p ssh-to-age --run "ssh-to-age -private-key -i /tmp/id_ed25519 > ~/.config/sops/age/keys.txt"
```
</details>
<details>