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

Remote DB using SSH says invalid private key #281

Open
cercos opened this issue Oct 28, 2019 · 1 comment
Open

Remote DB using SSH says invalid private key #281

cercos opened this issue Oct 28, 2019 · 1 comment

Comments

@cercos
Copy link

cercos commented Oct 28, 2019

I am trying to connect to a google cloud vm instance with mongo running using a openssh private key but it says invalid private key but it connects and works fine with other mongodb browsers I have.

@Xendiadyon
Copy link

Xendiadyon commented Nov 11, 2020

I have the same issue. My theory is, that I use an ed25519-key and the jcraft.jsch cant deal with this type of key:
https://intellij-support.jetbrains.com/hc/en-us/community/posts/360001301679-invalid-priatekey-error
https://stackoverflow.com/questions/47075187/jsch-support-for-ed25519-keys
https://issues.jenkins.io/browse/JENKINS-30319

Maybe there is a newer version of jsch available or David could switch to another SSH-vendor which allows ed25519 keys?
This would be great!

Even better would be if @dboissier could implement the OpenSSH config and authentication agent function, so that I could connect with my key stored in pageant ;)
image

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