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

[BUG] Error: Keys(CouldNotReadKey) #10115

Open
milindpatel63 opened this issue Dec 26, 2024 · 14 comments
Open

[BUG] Error: Keys(CouldNotReadKey) #10115

milindpatel63 opened this issue Dec 26, 2024 · 14 comments
Labels

Comments

@milindpatel63
Copy link

Describe the problem:
I'm getting this error since the latest version.

Failed to load private key vault://xxx: Error: Keys(CouldNotReadKey)

I have tried re-adding the key to the vault. Same error.
To Reproduce:

  1. Click on a profile.
  2. It should load the private key saved in the vault.
  3. It shows the above error.
@Eugeny
Copy link
Owner

Eugeny commented Dec 26, 2024

What format is the key in?

@milindpatel63
Copy link
Author

What format is the key in?

mostly PEM RSA...

@sgpublic
Copy link

sgpublic commented Dec 26, 2024

Me too, in 1.0.216.

My private key is something like this:

-----BEGIN OPENSSH PRIVATE KEY-----                                                                                                                                                                             
...                                                                                                                                                                        
-----END OPENSSH PRIVATE KEY-----

Edit:

This problem does not reproduce in 1.0.215.

@xwyam
Copy link

xwyam commented Dec 26, 2024

What format is the key in?

same problem with PEM ec prikey and PuTTY prikey
image

@Eugeny
Copy link
Owner

Eugeny commented Dec 28, 2024

New nightly build is available now - give it a try!

@Mini-Kahn
Copy link

Mini-Kahn commented Dec 28, 2024

Nightly build not working.
Same Error.
Same Key-Format

Use Key as "Vault" and "File"

@Eugeny
Copy link
Owner

Eugeny commented Dec 28, 2024

For both EC and PuTTY? PuTTY formatted keys won't be supported in the new backend for a while, but EC should still work.

Could you please generate a new key in the exact same format and post it here for me to test against?

@Mini-Kahn
Copy link

Sorry, my mistake. OpenSSH keys work, but the PuTTY keys do not.

@stormrage-project
Copy link

stormrage-project commented Dec 29, 2024

For me it's not working as well. Was woring like 2 days ago. Running version 1.0.216

It's working again when installing version 1.0.215.

@001101
Copy link

001101 commented Dec 30, 2024

It also stopped working for me when updating to recent version.

@Eugeny
Copy link
Owner

Eugeny commented Dec 31, 2024

There's a new nightly build with PPK key support available

@feligato
Copy link

feligato commented Jan 2, 2025

Tried the nightly build 1.0.217-nightly.0, same result, but different error message:

Error: Keys(SshKey(Ppk(UnsupportedFormatVersion(2))))
Could not read the private key

@001101
Copy link

001101 commented Jan 5, 2025

If I add the key as file from system again to profiles it is working, but a bit annoying for doing this over 20 entries. Had issues with the keys before, it should really not happen in any future build.

@Eugeny
Copy link
Owner

Eugeny commented Jan 6, 2025

@feligato PPKv2 support will be in the nightly as soon as this build completes https://github.com/Eugeny/tabby/actions/runs/12640523980

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

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

No branches or pull requests

8 participants