久しぶりにgithubを触ろうとしたら色んなエラーが出てssh接続できなくなったので、コマンドプロンプトをやめて、GitBashで鍵生成からやり直した
※今までgithubでの多人数開発経験はほんのちょっとだけ。
小型案件を実装自分ひとりでこなすことが多かったので、backlogのgitホスティングサービスを利用していた。
その際はsourcetreeを利用していたのでCUIはまだ不慣れ。
コマンドに早く慣れたい。
エラー
could not open a connection to your authentication agent.
とか
warning:Permanently added the RSA host key for IP address '{IP address}'to the list of known hosts.
Permission denied(publickkey).
やったこと
- ~/.ssh/known_hosts の履歴を消す
- 他アカウントで同じ鍵を登録していたのでそちらを削除(うっかりど忘れ)
色んなブログや書籍を見ても解決できなく、結局オフィシャルの案内に合わせてGitBashで鍵を作り直すことにした。
【Git help】
Generating a new SSH key and adding it to the ssh-agent
https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/