41
15

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【SSH】REMOTE HOST IDENTIFICATION HAS CHANGED が出た場合の対処法【github】

Posted at

githubに接続しようとすると、たまに下記のエラーが出る。

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  • ~/.ssh/known_hostsからホスト情報を削除
    ssh-keygen -R github.com

  • ssh接続を試す
    ssh -T git@github.com

Are you sure you want to continue connecting (yes/no/[fingerprint])?
と警告が出たら "yes" と入力

  • つながる

github以外のホストでも対処法は同じなはず。

41
15
3

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
41
15

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?