Forum Discussion

balvenie's avatar
balvenie
New Contributor
16 days ago

1Password for Mac SSH Key Import Bug

Stored SSH private key is different from what I provided

Overview

When importing an SSH private key with a passphrase, 1Password for Mac seems to corrupt the private key during the import process. The public key is (automatically) imported correctly, but the saved private key is different from the original and does not match the public key it's paired with.

Environment

  • App: 1Password for Mac
  • Version: 8.11.4 (81104027)

Steps to Reproduce

  1. Click "+ New Item" in the top-right corner of the 1Password desktop app.
  2. Select "SSH Key" by either typing "ssh" or clicking "Show more".
  3. Drag a private key file (with a passphrase) into the "Drag a Private Key file here to import" area.
  4. When prompted, enter the passphrase for the private key and click "Decrypt".
  5. Click "Save".
  6. Open the newly created SSH key entry.
  7. Click the private key field to open the "Export SSH Private Key" window.
  8. Ensure the "Export format" is set to "OpenSSH" which is the default format.
  9. Enter the passphrase and click "Copy Unencrypted Key".
  10. Compare the copied private key with the original private key file on your computer.

Expected Behavior

The private key exported from 1Password should be an exact, uncorrupted copy of the original private key file used for the import.

Actual Behavior

The private key exported from 1Password does not match the original file. While the public key is imported and exported(copied) correctly, the corresponding private key appears to be corrupted during import. This makes the stored private key unusable for authentication.

No RepliesBe the first to reply