RubyMine(または他のJetBrains社製IDE)でgit pushやgit pullでエラーが出るようになった場合の対処方法

発生する問題

RubyMine上でGitHubからpull、またはGitHubへpushしようとすると、以下のエラーが発生する。

Fetch failed: Could not read from remote repository.

しかし、ターミナルからpullやpushを実行するとエラーにならない。
また、最近まで普通にRubyMineからpullやpushはできていた。

エラーの原因

2018/2/23以降、GitHubが古い暗号アルゴリズムを使用不可とした。

https://githubengineering.com/crypto-removal-notice/

RubyMineのSSH executableがBuilt-inになっていると、この影響を受けて接続できなくなる。

対処方法

Preferencesを開き、SSH executableの設定をnativeに変更する。

Screen Shot 2018-02-23 at 20.11.36.png

備考

このエラーはRubyMineに限らず、JetBrains社製の他のIDEで同じように発生すると思われる。

  • IntelliJ IDEA
  • Rider
  • AppCode
  • CLion
  • DataGrip
  • GoLand
  • PhpStorm
  • PyCharm
  • WebStorm

参考文献

Built-In SSH Client can't connect to github.com : WI-40861

Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account log in.