Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Unable to connect to remote host - Private key decode error #14

Closed
skra72 opened this issue May 21, 2020 · 3 comments
Closed

Unable to connect to remote host - Private key decode error #14

skra72 opened this issue May 21, 2020 · 3 comments

Comments

@skra72
Copy link

skra72 commented May 21, 2020

Hi,

when I'm using the Remote X11 extension in VSC on macOS I get this error when connecting:

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

Looks like the private key in .ssh/id_rsa cannot be read. However, the Remote-SSH extension does using the same setup for public key authentication without problems.

Any idea how to get Remote X11 working, too?

@skra72 skra72 changed the title Unable to connect to remote host - Decode error Unable to connect to remote host - Private key decode error May 21, 2020
@joelspadin
Copy link
Owner

This error message isn't from anything in my extension. My best guess is it's being returned by the SSH server.

What did you use to generate that key? Googling that error message brings up a couple results that may help:

liximomo/vscode-sftp#594
Eugeny/tabby#666

@joelspadin
Copy link
Owner

Another thing you can try is adding the key to an SSH agent and switching remoteX11.SSH.authenticationMethod to agent. I don't have a Mac so I don't know what (if anything) you need to set remoteX11.SSH.agent to though.

@skra72
Copy link
Author

skra72 commented May 23, 2020

Seems to be a strange openssl issue on my dev system. I tested everything on another one and there it works.

Anyway, thanks for your help!

@skra72 skra72 closed this as completed May 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants