0
0

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 でWARNING: REMOTE HOST IDENTIFICATION HAS CHANGED

Last updated at Posted at 2023-03-27

症状

このところ表題のエラーが出て...

に対処法があるが,

原因

原因は,

Gihubのホストkeyがsecurityのために,23/3/24にupdateされた.

対処法

ssh-keygen -R github.com

で.ssh/known_hostsに登録されているgithub.comのssh-rsa keyが削除(remove)される.

接続すると

ssh git@github.com

などで

The authenticity of host 'github.com (20.27.177.113)' can't be established.
ED25519 key fingerprint is SHA256:+hoge hoge
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? 

となるが,yesと入力し,known_hostsに登録.

これで,無事ssh接続がスムーズにいく.あ,

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

なんで,実際には接続されませんが,git pushとかpullができます.

追記 <2023-03-27 月>

Warning: the ECDSA host key for 'github.com' differs from the key for the IP address '20.27.177.113'
Offending key for IP in /home/bob/.ssh/known_hosts:25
Matching host key in /home/bob/.ssh/known_hosts:28

などのエラーが出る.

これは,knwon_hostsにgithub.comのIPアドレスが直打ちされているため.

その場合は,

ssh-keygen -R 20.27.177.113

として削除したのちに,再トライ.


  • source ~/git_hub/grad_research_23/qiita_items/github_key_update.org
0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?