LoginSignup
172
130

More than 5 years have passed since last update.

SSH接続でgit pushしたときに警告が出るやつへの対処法

Posted at

経緯

少し前にbitbucketのIPアドレスが変わった影響で(?)、SSH接続するときに次の警告が出るようになった。

Warning: Permanently added the RSA host key for IP address '104.192.143.1' to the list of known hosts.

git push とか git fetch とかできなくなる訳ではないので困る話ではないんだけど、警告出てるのは気分が良くないのでその対処。

対処法

次のコマンドを実行する。

ssh-keygen -R 104.192.143.1

IPアドレスの部分は適宜状況に応じて変えてください。
これで~/.ssh/known_hostsの更新が行われて警告が出なくなる。

172
130
2

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
172
130