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

SSH key support: ED25519 #36

Closed
RixzZ opened this issue Aug 25, 2018 · 14 comments
Closed

SSH key support: ED25519 #36

RixzZ opened this issue Aug 25, 2018 · 14 comments
Labels
enhancement New feature or request

Comments

@RixzZ
Copy link

RixzZ commented Aug 25, 2018

Hello.

I'm trying to use an ED25519 key to mount the workspace folder, but I'm receiving this error:

Error while connecting to SSH FS scripts-bash: Cannot parse privateKey: Unsupported key format

It seems like this key format is not compatible right now. Can that be added since is completely compatible with current OpenSSH versions (6.5+)?

Thanks!

@RixzZ RixzZ changed the title SSH key support: ed25519 SSH key support: ED25519 Aug 25, 2018
@tibibok
Copy link

tibibok commented Sep 3, 2018

+1

2 similar comments
@rabalyn
Copy link

rabalyn commented Sep 5, 2018

+1

@l0rda
Copy link

l0rda commented Sep 7, 2018

+1

@SchoofsKelvin
Copy link
Owner

I've looked a tiny bit into it and found this: mscdex/ssh2-streams#100

When I have more time, I'll look into having the extension automatically convert it to a supported format, but this won't be implemented anytime soon.

@SchoofsKelvin SchoofsKelvin added the enhancement New feature or request label Sep 8, 2018
@spkane
Copy link

spkane commented Feb 7, 2019

I did not see/notice the Unsupported key format error so this took me longer to troubleshoot, but in my sshd logs I saw this pattern:

mobbox-debug_1  | debug1: trying public key file /home/skane/.ssh/authorized_keys
mobbox-debug_1  | debug1: fd 4 clearing O_NONBLOCK
mobbox-debug_1  | debug2: user_key_allowed: check options: 'ssh-ed25519 ...REDACTED... skane@skane-mbpro
mobbox-debug_1  | '
mobbox-debug_1  | debug2: user_key_allowed: advance: '...REDACTED... skane@skane-mbpro
mobbox-debug_1  | '
mobbox-debug_1  | debug2: key not found

Switching to my RSA key, worked around this issue, but is not ideal.

Even without a true fix, it would be nice if the plugin reported a proper error via the vscode GUI, so that users don't potentially spend hours trying to figure it out what the problem is.

@SchoofsKelvin
Copy link
Owner

If I'm not wrong, this should be the same key format I recently added support for (#85)

@MrOnosa
Copy link

MrOnosa commented Feb 25, 2019

Negative.
image

@SchoofsKelvin
Copy link
Owner

Ah, seems like it's back to waiting on mscdex/ssh2-streams#100:

FWIW ssh2-streams v0.3.0 now supports the "new" OpenSSH key format, but not ed25519 keys yet as that requires OpenSSL 1.1.1 which has not yet been incorporated into node core.

@MrOnosa
Copy link

MrOnosa commented Feb 26, 2019

@SchoofsKelvin I would appreciate it if this issue was reopened. Since this is not an issue I created, and because I am not a collaborator, I cannot re-open it myself.

@SchoofsKelvin
Copy link
Owner

I'll reopen the issue, but as stated, it's just waiting until ssh2-streams adds support, at which point I'll upgrade that dependency to include the new support.

@SchoofsKelvin SchoofsKelvin reopened this Feb 26, 2019
@aaronwolen
Copy link

Looks like ED25519 support was added last week: mscdex/ssh2-streams#100 (comment)

@SchoofsKelvin
Copy link
Owner

As the comment indicates, the current version 10.x of node doesn't support it yet.

After a bit of googling, it seems that 10.x will get OpenSSL 1.1.1 soon, but mind that we need to wait on VSCode to update their Electron dependency (microsoft/vscode#61787), since they use Electron's node version. That would be Electron 5.0.0 (unless they release a new 4.x version with a higher 10.x node version, once available), a major version change, while VSCode still uses 3.1.6.

Summary: The underlying ssh2 library now supports it, and updating this dependency to the required version isn't a problem, but VSCode won't support it anytime soon yet.

@fridtjof
Copy link
Contributor

fridtjof commented Nov 8, 2019

VS Code 1.40, released today, now uses Electron 6: https://code.visualstudio.com/updates/v1_40#_electron-60-update
This includes Node 12.4

Seems like the only thing left is to update to ssh2 0.8.3 or higher (latest is 0.8.6).

@Keridos
Copy link

Keridos commented Mar 2, 2020

Any updates on this?

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

Successfully merging a pull request may close this issue.

10 participants