タイトルの通り。
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”
やっと解消してよかった 😌