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

Unable to connect with private key #2018

Open
avdeev-a opened this issue Jan 17, 2020 · 15 comments · Fixed by #2197
Open

Unable to connect with private key #2018

avdeev-a opened this issue Jan 17, 2020 · 15 comments · Fixed by #2197

Comments

@avdeev-a
Copy link

Mac OS HS 10.13.6
I am using private key for connection.
I am adding a new host and trying to connect my remote machine:
Error while signing data with privateKey: error:06000066:public key routines:OPENSSL_internal:DECODE_ERROR
I can make the same exact connection with Iterm2 without any issues.

@ChipwizBen
Copy link

I have this issue with A100 also. According to this issue the recommendation is to turn it into an OpenSSH key - however, it already is an OpenSSH key, albeit encrypted. The same key has worked with previous versions without a problem, and still works on regular Linux terminals.

@Eugeny
Copy link
Owner

Eugeny commented Jan 28, 2020

Which cipher does your key use? (in the DEK-Info header in the file itself)

@ChipwizBen
Copy link

ChipwizBen commented Jan 28, 2020 via email

@solomchuk
Copy link

Seeing the same issue with A102, using an unencrypted OpenSSH key. Works in all other terminals I've tried (Putty, Mobaxterm, built-in SSH in Win10, and various CentOS VMs).

@ChipwizBen
Copy link

Same for me, also on the newly released A102. I keep having to downgrade to A98 to get working again. For what it's worth, I've removed the passphrase from the key and the issue persists. The new key still works with other applications including the regular Terminal.

The only thing that I can think of that might be different about my key and a "typical" key is that mine is a 4096 bit SHA256 RSA key. By default they're usually 2048 bit from ssh-keygen, though I notice that in the newest Fedora they're 3072 bit.

@solomchuk
Copy link

@ChipwizBen The key I'm using is 2048 bit RSA (default Puttygen settings), so I doubt that's the issue here.

@K3UL
Copy link

K3UL commented Feb 14, 2020

I also have an open issue on this, #2053
It appeared in A99, with a new key parser.

Issue #2006 makes it sound like the problem arises when your key was generated with putty-keygen, if you guys can confirm or not.

@solomchuk
Copy link

@K3UL Yes, I originally used Puttygen to generate my key in ppk format. I then exported it to OpenSSH format and successfully used both in a number of settings, depending on what was supported. My understanding is that Terminus does not support ppk keys, so I tried using the OpenSSH version, which also does not work.

@Eugeny Eugeny closed this as completed in 851d92a Feb 16, 2020
@ChipwizBen
Copy link

Sadly, this is not fixed in A103 either:

X Error while signing data with privateKey: error:06000066:public key routines:OPENSSL_internal:DECODE_ERROR

@Eugeny Eugeny reopened this Feb 18, 2020
@tony-ruchti
Copy link

tony-ruchti commented Feb 28, 2020

Seems to be something that was changed with release 99.
I installed back to release 98 (https://github.com/Eugeny/terminus/releases/tag/v1.0.98) and disabled updates, and can connect to my server through ssh with a private key generated from puttygen, updating to 99 causes an error of "failed to parse (unknown) as a valid auto format key" error (Sorry Devs, not much new info there for you)

GitHub
A terminal for a more modern age. Contribute to Eugeny/terminus development by creating an account on GitHub.

@tony-ruchti
Copy link

updated to 104, Here's the error I recieve when trying to connect with my puttygen key that was created:
Loading private key from C:\Users...ppk
X Failed to parse (unnamed) as a valid auto format key: key is not a private key

@Eugeny Eugeny reopened this Mar 2, 2020
@iFlyinq
Copy link

iFlyinq commented Mar 3, 2020

Same issue ^

@ghost
Copy link

ghost commented May 8, 2020

Got the same issue

@stale
Copy link

stale bot commented Nov 8, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in two weeks unless you comment.
Thank you for your contributions.

@stale stale bot added the S: Stale This issue had no activity for two months label Nov 8, 2020
@stale stale bot removed the S: Stale This issue had no activity for two months label Dec 6, 2020
@Eugeny
Copy link
Owner

Eugeny commented May 15, 2021

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

Successfully merging a pull request may close this issue.

7 participants