SSH を更新

環境の変化があったので、とある clone で以下のエラーが出た

 

 > git clone git@github.com:hoge/fuga.git
Cloning into 'fuga'...
ERROR: Sorry, but @piyo has blocked access to SSH keys created by some third-party applications. Your key was created before GitHub tracked keys created by applications, so we need your help.

If you personally created this key, you can approve it at:

  https://github.com/settings/ssh/audit/*******/policy

Otherwise, please upload a new key:

  https://github.com/settings/ssh

 

とりあえず SSH がダメなんだろうなということで OpenSSH を更新

実は https://github.com/settings/ssh/audit/*******/policy で設定をすると終わる話なんですが古いSSHを使うのも抵抗があるので今回は更新を行います

 

 > brew install openssh

 

簡単ですね

一応バージョン確認をします

 

> ssh -V     
OpenSSH_6.9p1, LibreSSL 2.1.7

 

まぁ問題無いでしょう

あとは Github の設定方法を確認しながら進めると完了です

 

Generating SSH keys - User Documentation

https://help.github.com/articles/generating-ssh-keys/