ExecutionException: SSH: Auth fail
When i try to conect to MySQL over SSH i get "SSH: Auth fail" but the credentials are correct becouse i can connect from terminal perfectly.
the idea.log fail says
2017-01-07 10:10:03,351 [ 50039] WARN - lij.database.util.ErrorHandler - SSH: Auth fail
com.intellij.execution.ExecutionException: SSH: Auth fail
at com.intellij.execution.rmi.RemoteProcessSupport.acquire(RemoteProcessSupport.java:159)
at com.intellij.database.console.JdbcDriverManagerImpl.getDriver(JdbcDriverManagerImpl.java:116)
at com.intellij.database.dataSource.LocalDataSource.getConnection(LocalDataSource.java:330)
at com.intellij.database.dataSource.LocalDataSource.getConnection(LocalDataSource.java:325)
at com.intellij.database.dataSource.LocalDataSource.performJdbcOperation(LocalDataSource.java:1344)
at com.intellij.database.dataSource.LocalDataSource.refreshMetaData(LocalDataSource.java:1149)
at com.intellij.database.dataSource.DataSourceUiUtil$RefreshTask.run(DataSourceUiUtil.java:530)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:710)
at com.intellij.openapi.progress.impl.CoreProgressManager$11.run(CoreProgressManager.java:423)
at com.intellij.openapi.progress.impl.CoreProgressManager$3.run(CoreProgressManager.java:179)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:568)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:519)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:164)
at com.intellij.openapi.application.impl.ApplicationImpl.a(ApplicationImpl.java:572)
at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:309)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Please sign in to leave a comment.
As a temporary workaround you need to specify `Auth type` as `OpenSSH config and authentication agent` and load your keys into agent:
If there is still the issue, could you try to reproduce it with the latest DataGrip 2019.2 EAP and specify your case in https://youtrack.jetbrains.com/issue/IDEA-216202?
Hi,
Could you provide your datasource SSH settings screen shot?
Thank you.
Thanks
I have the same problem
Same problem. DataGrip is not usable because of this
@vasily chernov ssh tunnels fail since 2016. Why is this such a problem to fix them? Simple and free sequel pro has no a single issue with this.
@Terion Hi,
Enhanced SSH functionality will be available in DataGrip 2017.3.
Thank you.
@vasily chernov
2017.3 is out
weeeell.... stack trace is now shorter. big progress
@Terion Hi,
Could you attach full IDE log? Do you ssh agent?
Thank you.
Same problem.
DataGrip 2017.3.3
Build #DB-173.4127.18, built on December 19, 2017
Licensed to DataGrip Evaluator
Expiration date: January 26, 2018
JRE: 1.8.0_152-release-1024-b8 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.13.2
I use ssh-agent.
How to get full IDE log?
By the way. Setting "Auth type" to option "OpenSSH config and authentication agent" helps in my case
@ Pablo Nuñez Hi,
Do you connect with root@159.203.106.23 user? Try with root only.
Thank you.
@vasily chernov
I've already opened a ticket in your bug tracker and already asked you about how to get this log =)
@Terion what is the ticket id?
@Sanders https://youtrack.jetbrains.com/issue/DBE-5649
Our office started getting the `jcraft.jsch.JSchException: Auth fail` exception today. I don't know if this is related to the original poster's problem, but we found re-entering SSH key passwords restored functionality.
Reentering ssh key worked for me as well. Thanks @Mike Heyns!
I ran into this after updating macOS. Re-adding key to ssh-agent worked for me:
Using PyCharm with same error. But as Ben suggested, moving key to ssh-agent, and then modifying settings in PyCharm to use ssh-agent instead of OpenSSH pair worked.
Thanks Ben, re-adding key worked for me.
I have the same problem. I can connect successfully with Putty but couldn't via IntelliJ.
It is ridiculous, I can connect via the terminal coming with IntelliJ by ssh username@host.com, but I could not connect by "Start SSH session" also could not connect via Database explorer. (I am using the option "OpenSSH config and authentication agent")
Stack trace producing from "Start SSH session"
@R Donuk,
Thank you for stack trace.
Do you load your keys into ssh agent?
Could you specify signing algorithm for your ssh keys?
I am having the same issue - is there a resolution for this?
@Alan Quach,
The same questions for you:
almost 3 years and now I'm downloading fresh datagrip — and still can't connect via ssh tunnel. I have no words, jetbrains. vasily chernov seriously?
Terion,
Could you file an issue in our YouTrack https://youtrack.jetbrains.com/issues/DBE ?
Also, try Auth type OpenSSH config & auth agent
vasily chernov it's there for 2 years already https://youtrack.jetbrains.com/issue/DBE-5649
@Terion,
Could you describe you problems in the issue https://youtrack.jetbrains.com/issue/DBE-5649?
Is it related to ssh passphrase? If it is, follow steps described in https://youtrack.jetbrains.com/issue/IDEA-214583#focus=streamItem-27-3901920.0-0
vasily chernov, Volodymyr Kornilov in comments in youtrack — that's me