DataGrip: com.intellij.execution.ExecutionException: SSH: Failed to load identity file

Completed

I have a private key in ~/.ssh/id_rsa

I can confirm that I can ssh from the terminal

I am trying to setup an SSH tunnel in data grip, and when specifying the Private Key File, I get the error:

com.intellij.execution.ExecutionException: SSH: Failed to load identity file

16 comments
Comment actions Permalink

I have even tried the fully qualified path /Users/myusername/.ssh/id_rsa with no luck as well

0
Comment actions Permalink

@Sheehan

Could you email Vasily.Chernov@jetbrains.com me IDE logs and specify your id-rsa type?

A workaround mentioned in https://youtrack.jetbrains.com/issue/PY-33798 may help you.

0
Comment actions Permalink

I'm having the same issue. My key works in other applications and via terminal. The workaround didn't work for me.

0
Comment actions Permalink

@Developer

Could you email Vasily.Chernov@jetbrains.com me IDE logs and specify your id-rsa type?
What workaround did you use?

0
Comment actions Permalink

I'm also getting this same error, is there a way of dealing with this yet?

 

0
Comment actions Permalink

There is a workaround mentioned https://youtrack.jetbrains.com/issue/PY-33798?p=DBE-3983 (need to use auth-agent).

 

0
Comment actions Permalink

Hello, I got the same error.

I read the suggested workaround, but still no clue. 

Thank you.

0
Comment actions Permalink

@ Rkukuh 

You need to use `OpenSSH config and authentication agent` option and to use ssh agent as a workaround.

 

 

0
Comment actions Permalink

Hello, I got the same error.

can you give me a beautiful solution?

0
Comment actions Permalink

@858299224

Could you specify your DataGrip version and specify your private key pair encryption type?

 

0
Comment actions Permalink

I'm having the same issue, i'm using DataGrip 2019.1.4 and a rsa 2048 key

0
Comment actions Permalink

@galla,

Make sure you load ssh key into auth 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?

 

 

0
Comment actions Permalink

@vasily: I have just tried to use on 2019.2 EAP. And it worked. Don't get

com.intellij.execution.ExecutionException: SSH: Failed to load identity file and can connect to DB via ssh tunnel

0
Comment actions Permalink

@Bao Doan Ngoc,

Cool, there are a lot of improvements in SSH subsystem in the coming DataGrip 2019.2 release. Stay tuned and up to date.

0
Comment actions Permalink

 

Hi, it works on the 2019.2.1 version.

 

Tks

1

Please sign in to leave a comment.