Problem with SSH private key file since 1.0.99

See original GitHub issue

Similar to #2006 I generated a key with putty-keygen (I think, it was so long ago) and it stopped working to connect by SSH in 1.0.99 (and 1.0.100) with the following message: Error while signing data with privateKey: error:06000066:public key routines:OPENSSL_internal:DECODE_ERROR

Here is the header of my key file:

-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: AES-128-CBC,6AAC7A25BD3CC1C457B424C247C20CEB

It used to work fine until 1.0.98. Is this a regression or is it some format that will not be supported anymore ?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
K3ULcommented, Feb 6, 2020

Thank you ! But as stated by someone in that thread, converting to PEM does not seem like a great solution

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problem with SSH private key file since 1.0.99 #2053 - GitHub
Similar to #2006 I generated a key with putty-keygen (I think, it was so long ago) and it stopped working to connect by...
Read more >
Troubleshooting SSH Key Authentication | Linode
The client is using the wrong public key or the wrong identifier. The client does not possess a private key. The target server...
Read more >
Unable to connect to SSH after generated public key and ...
I'm getting an error "Connection closed by 127.0.0.1" if I use the command "ssh localhost" . However I'm able to connect by skipping...
Read more >
SSH Error: unknown key type '-----BEGIN' - Server Fault
When the key file is read, ssh is first trying to parse it as the deprecated RSA key (now called "RSA1"), those keys...
Read more >
SSH authenticate with public key (not private key)
The server holds the private key in authorized_keys , and the client can connect with: ssh -i id_rsa.pub server.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found