Skip to main content
July 16, 2022
Question

1Password changed my private key upon import

  • July 16, 2022
  • 22 replies
  • 3302 views

I am importing a ed25519 SSH key I generated on my Mac via CLI ages ago. I imported the key from file and input the keys password. 1Password created the new SSH key record. The public_key matches my public key, however my private key is different.

One thing I noticed is that the header of my private key file is -----BEGIN OPENSSH PRIVATE KEY----- while the header of the private key in 1Password is -----BEGIN PRIVATE KEY-----.

I tested connecting to some servers over SSH using the key in 1Password, however it does not work to connect to my SSH servers.

So did 1Password recode my key somehow away from OpenSSH?


1Password Version: 8.73
Extension Version: Not Provided
OS Version: macOs 11.6.7
Browser:_ Not Provided
Referrer: forum-search:https://1password.community/search?Search=ssh%20key%20import

22 replies

March 1, 2024

@floris_1P Thank you so much. It's finally "almost" usable again.

One complaint though. In most cases, you want to export the private key encrypted. Unfortunately, you give this option only for OpenSSH Format, not for PKCS#8. I need to export password encrypted PKCS#8 keys.

PS: For consistency, provide this option also for the public key (openssh format and pem) please.

floris_1P
1Password Employee
March 1, 2024

@amaridev Thanks for the feedback! Encryption support for the PKCS#8 exports is on our list. Regarding the public key PEM exports: do you need this for an SSH use case? Or are you using the SSH Key item for non-SSH things as well?