Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
Former Member
3 years agoSSH Private Keys are not exported correctly from "op read" command
I am attempting to pull an SSH private key using the CLI, to then pipe it to the Windows ssh-agent (not the 1Password agent, as the laptop's policy prevents Windows Hello from being used). When I exp...
Jack_P_1P
1Password Team
3 years agoHi @robbycuenot:
As it currently stands, exporting the private key of an SSH key from 1Password CLI will export in PKCS #8 format. We're currently investigating ways to improve this behavior. What might work in the meantime however is to save the text of the private key as an attachment in your SSH key item, like so:
With an item looking like this, you could access the OpenSSH formatted key using this command: op read op://<vault name/UUID>/<item name/UUID>/id_ed25519
Let me know how you get on with that!
Jack