Windows の Git で pull とか fetch とかしようとすると Host key verification failed と怒られるとき

結論

ユーザフォルダ\.ssh\known_hosts を作成します。

問題点

Windows では ssh-keyscan が無いので known_hosts を作れません。

どうするか

以下の手順を踏みます*1。可能なら Linux 環境で作成したのを持ってきてもよいでしょう。

  • Open the git GUI.
  • Open the local git repository in git GUI.
  • Add the remote or push if the remote already exists.
  • Answer "yes" to the question about whether you want to continue.

引用元(感謝)

stackoverflow.com

*1:引用します

Powered by はてなブログ