Update on SSH Access to GitHub in IntelliJ-based IDEs

GitHub introduced a change last week that drops support for weak cryptographic keys. This has resulted in connectivity issues for some users who are connecting to GitHub using SSH and the built-in client SSH Executable.

To rehash, there are two ways to work with Git and SSH when using any of the IntelliJ-based products:

  • Using Built-in SSH client
  • Using Native SSH client

This setting is configured under Version Control | Git | SSH executable:

It is only when you use the built-in client that this causes issues with the recent changes with GitHub.

This issue has already been fixed for 2018.1 EAP and will be available in the release version. In the meantime, as a workaround, you can switch to using Native support. Please note however that when using this option, if your SSH keys are protected with a passphrase they need to be added at system level. This is usually done by using a tool such as ssh-agent.

We are also backporting the fix to 2017.3 and the EAP for this is already available, with the release version due out in the coming weeks.

To recap, your options right now are:

  • Use 2018.1 EAP
  • Use 2017.3 EAP
  • Switch to use Native as a workaround

We do apologize for not having resolved this issue sooner and will strive to improve.

The JetBrains Team

Comments below can no longer be edited.

16 Responses to Update on SSH Access to GitHub in IntelliJ-based IDEs

  1. Avatar

    Florian Schwanz says:

    February 27, 2018

    Thanks for your explanation. Just for completion: I think you are referring to this change in GitHub

  2. Avatar

    Patrick M. Callahan says:

    February 27, 2018

    This was announced over one year ago.

  3. Avatar

    Karl says:

    February 27, 2018

    Appreciate the blog post, I was wondering if this was submitted as a ticket – though I’m glad I came across this.

  4. Avatar

    Pavel says:

    March 2, 2018


    I Googled for “intellij There was a problem while connecting to” and hopefully found this page. Thanks!

  5. Avatar

    Paulo says:

    March 5, 2018

    Well, I just downloaded 2017.3.3 and the problem is still happening There was a problem while connecting to
    at com.trilead.ssh2.Connection.connect(
    at com.trilead.ssh2.Connection.connect(
    at com.trilead.ssh2.Connection.connect(
    at org.jetbrains.git4idea.ssh.SSHMain.start(
    at org.jetbrains.git4idea.ssh.SSHMain.main(
    Caused by: Key exchange was not finished, connection is closed.
    at com.trilead.ssh2.transport.KexManager.getOrWaitForConnectionInfo(
    at com.trilead.ssh2.transport.TransportManager.getConnectionInfo(
    at com.trilead.ssh2.Connection.connect(
    … 4 more
    Caused by: Cannot negotiate, proposals do not match.
    at com.trilead.ssh2.transport.KexManager.handleMessage(
    at com.trilead.ssh2.transport.TransportManager.receiveLoop(
    at com.trilead.ssh2.transport.TransportManager$
    fatal: Could not read from remote repository.
    Please make sure you have the correct access rights
    and the repository exists.

  6. Avatar

    Jorrit Schippers says:

    March 6, 2018

    Microsoft TFS didn’t support the lesser secure protocols since it supported git. As JetBrains also has an editor for .NET/C# developers and TFS is well known product in that ecosystem, I think it is a shame that this feature wasn’t implemented earlier. It has been reported years ago.

    • Avatar

      Andrey Cheptsov says:

      March 6, 2018

      You’re right. We’re sorry about that. We will do our best to avoid such situations in future.

  7. Avatar

    Krzysztof Miksa says:

    March 12, 2018

    Do you know when IntelliJ IDEA 2017.3.5 will be released?

    • Avatar

      Andrey Cheptsov says:

      March 12, 2018

      Within a couple of days.

  8. Avatar

    ajay says:

    July 18, 2018

    my SSL issue is resolved thanks 🙂

  9. Avatar

    deepak says:

    July 19, 2018

    To solve ssh key issue run below given command and it will work.

    git config –global http.sslVerify false

    • Avatar

      sami basa says:

      July 20, 2018

      Thanks for the command given command help me to resolve the issue.

  10. Avatar

    Vladimir Tisma says:

    October 25, 2018

    I’ve came across this one, because github integration suddenly stopped working for me.

    I was using Intellij IDEA 2018.2.1 and upgraded to 2018.2.5, without luck.

    Switching to native SSH helped. I was not aware of this setting before, and now I’m wondering why in the world it worked last week, but today it doesn’t with Built-in SSH client.

    Btw, my PHPStorm was working well, and I just realized that it was set to use Native SSH.

    The real question is – is it at all possible to use Built-in SSH client and a passphrased SSH key?

  11. Avatar

    Łukasz Karbowniczek says:

    May 6, 2019

    Thank you:) Adding path to new version of Git works very well.
    Of course new version of Git must be install before you add a path.
    Default installation of InteliJ uses old version of Git from himself installation.

  12. Avatar

    Andrew C says:

    May 22, 2019


    Is there an updated version documentation of this around?

    Version 2019.1.2 and it doesn’t seem to have the option to change the SSH client anymore.

    I can go back to an earlier version, but if there’s a way to do this with the current version, that would be better.

  13. Avatar

    Tom K says:

    May 4, 2020

    Hi guys,

    I am having the same case as Andrew C above.

    Version Ultimate 2019.3.4 doesn’t seem to have the option to change the SSH client anymore. I can not go back to the earlier version.

    Could you please help?

Discover more