0
1

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.

久しぶりにgithubにssh接続しようとしたら「IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!」とエラーが出た

Posted at

久しぶりにgithubで自分のレポジトリをcloneしようとしたところ、

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is

...
Host key for github.com has changed and you have requested strict checking.

的なメッセージが出て、cloneできなかった.

原因

githubで何らかの変更があった模様.
2023/03/23の記事で、上記エラーを確認したのが2023/11/04なので、この変更をまたぐと
エラーが起きる可能性あり

github: We updated our RSA SSH host key

対処方法

sssにconfigでgithub.comを登録している場合、一度消してあげればといよい。

下記を実行

ssh-keygen -R github.com

その後、ssh git@github.comを試せば、yes/noを聞かれた後、接続成功のメッセージが出るはず.

You've successfully authenticated, but GitHub does not provide shell access.

的なメッセージが出れば良い

0
1
0

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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?