mongo4idea icon indicating copy to clipboard operation
mongo4idea copied to clipboard

Remote DB using SSH says invalid private key

Open cercos opened this issue 5 years ago • 1 comments

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.

cercos avatar Oct 28 '19 21:10 cercos

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

Xendiadyon avatar Nov 11 '20 08:11 Xendiadyon