1
0
website/notes/exporting ssh key from gpg.md

14 lines
369 B
Markdown
Raw Normal View History

2022-08-14 12:44:25 +03:00
---
tags: [gpg,ssh]
---
2022-08-14 10:03:26 +03:00
- gpg --export-secret-ssh-key doesn't work
- gpg --export-ssh-key works to export public key
-----------
- to export secret ssh key first remove password from your [A]uthentication subkey
- you can do this with `gpg --edit-key KEYID` and then `passwd` and `save`
2022-08-14 12:44:25 +03:00
- then do `gpg --export-secret-subkeys KEYID! | openpgp2ssh KEYID > ssh_key`