LoginSignup
2
2

More than 5 years have passed since last update.

github初心者-備忘録

Last updated at Posted at 2016-04-26

久しぶりに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/

2
2
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
2
2