AntonShuvaev / elasticsearch4idea

Elasticsearch Plugin for JetBrains IDEs
https://plugins.jetbrains.com/plugin/14512-elasticsearch
59 stars 8 forks source link

Connection test failed: com.jcraft.jsch.JSchException: Auth fail for methods 'publickey ,keyboard-interactive' #115

Closed Zurich0 closed 1 year ago

Zurich0 commented 1 year ago

I try to connect the server with SSH tunnel (must with SSH tunnel), but i got the error message like Connection test failed: com.jcraft.jsch.JSchException: Auth fail for methods 'publickey ,keyboard-interactive'

Environment information:

AntonShuvaev commented 1 year ago

Hi @Zurich0,

Are you using the OpenSSH config and authentication agent option in the SSH configuration? Did you try to connect to the server using the ssh command in the terminal? If you can connect to the server using the ssh command, you should be able to connect to the server using the SSH tunnel in the plugin.

Zurich0 commented 1 year ago

Hi @AntonShuvaev , I am using OpenSSH_9.3p1, LibreSSL 3.3.6. I can connect the server using ssh command in the terminal, but can not connect the ssh from Elasticsearch plugin. And I try the idea self-contained database tools, it can also connect the server normally.

image
AntonShuvaev commented 1 year ago

@Zurich0,

Thanks for the details, I will look into it.

AntonShuvaev commented 1 year ago

I've added support for keyboard-interactive SSH authentication in 2023.2.4. Please update the plugin and let me know if it works for you.

pooyk commented 1 year ago

I've added support for keyboard-interactive SSH authentication in 2023.2.4. Please update the plugin and let me know if it works for you.

cannot work @AntonShuvaev

connection test failed: com.jcraft.jsch.JSchAlgoNegoFailException: Algorithm negotiation fail:
algorithmName="server_host_key" jschProposal="rsa-sha2-512,rsa-sha2-256,ssh-ed25519
,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521" serverProposal="ssh-rsa,ssh-dss"

version 2023.2.4 (2023-07-12)

AntonShuvaev commented 1 year ago

@pooyk, I created another issue for this #120.

Zurich0 commented 1 year ago

It is work for me, thanks~