gejun123456 / redispluginIssues

8 stars 1 forks source link

SSH auth fails #14

Closed axelcostaspena closed 4 years ago

axelcostaspena commented 4 years ago

I am trying the plugin, and it always connects fine on localhost, but never connects on hosts which need an SSH tunnel.

Entered same data as in the IDE SSH connections. IDE can connect to SSH shell, to databases through SSH, but Redis client fails to connect to Redis through SSH:

net.schmizz.sshj.userauth.UserAuthException: Exhausted available authentication methods
    at net.schmizz.sshj.SSHClient.auth(SSHClient.java:227)
    at net.schmizz.sshj.SSHClient.auth(SSHClient.java:202)
    at net.schmizz.sshj.SSHClient.authPassword(SSHClient.java:288)
    at net.schmizz.sshj.SSHClient.authPassword(SSHClient.java:258)
    at net.schmizz.sshj.SSHClient.authPassword(SSHClient.java:242)
    at org.bruce.tools.nosql.f.a.l.a(l.java:134)
    at org.bruce.tools.nosql.f.a.j.a(j.java:46)
gejun123456 commented 4 years ago

Thanks for feedingback. what is your ssh key format like? like following. image

axelcostaspena commented 4 years ago

Connections are with user+password

gejun123456 commented 4 years ago

ok, will check it. thanks

gejun123456 commented 4 years ago

image just checked, it could work. have you set the ssh user name?

axelcostaspena commented 4 years ago

Hi. I did no concrete change, but now it's working.. incredible. Sorry, thank you for your support!