Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse error with encrypted SSH keys exported by 1Password #256

Open
DoubleREW opened this issue May 21, 2023 · 0 comments
Open

Parse error with encrypted SSH keys exported by 1Password #256

DoubleREW opened this issue May 21, 2023 · 0 comments

Comments

@DoubleREW
Copy link

Hi,
I'm experiencing the following error when I try to use encrypted keys exported by 1Password for Mac (v8.10.6). I've tried several keys, but none of them work with drone-ssh.

ssh.ParsePrivateKey: ssh: parse error in message type 0

The same keys work when I use them with the built-in ssh client of macOS or with the openssh client of Alpine Linux or Debian Bullseye.
I've attached a sample unencrypted key generated by 1Password, the same key encrypted by 1Password, and also the same key encrypted from the terminal using the ssh-keygen tool.
All of them work when used with the openssh client, but only the plain and the ssh-keygen encrypted keys work with drone-ssh.

plain_key_1password.txt
encrypted_key_1password.txt
encrypted_key_macos.txt

Passphrase: KH8Lehp2*@DgZFBEY2A6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant