1
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 3 years have passed since last update.

Warning: Permanently added 'github.com,xxx.xxx.xxx.xxx' (RSA) to the list of known hosts. が出た時に対応したこと

Posted at

タイトルの通り。

Git でリモートとの接続 (pull とか push とか) をした時にこんなエラーが出ている。

Warning: Permanently added 'github.com,xxx.xxx.xxx.xxx' (RSA) to the list of known hosts.

Warning ではあるけど気持ち悪かったので色々調べてやっと解消したのでその結果を残しておく。
(私の環境ではこれで解消したので他の原因もあるかもしれませんが、記録として残しておく)

結論

~/.ssh/config

を見ると UserKnownHostsFile の設定がおかしなことになっていたので修正。

# 修正前
UserKnownHostsFile=/dev/null

# 修正後
UserKnownHostsFile ~/.ssh/known_hosts

参考

stack overflow: Git says “Warning: Permanently added to the list of known hosts”

やっと解消してよかった 😌

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