LoginSignup
2
4

More than 5 years have passed since last update.

githubへpush時に毎回認証要求される時に確認したいこと

Posted at

URLを確認

リポジトリ内で以下のコマンドで確認。

$ git remote -v

共通して考えられる原因

~/.ssh/known_hostsに古い認証情報がキャッシュされている

対処方法: 当該ファイル内の行の先頭がgithubで始まる行を削除する

git@で始まる場合に考えられるもの

公開鍵の設定に不備がある

対処方法: https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/

~/.ssh/configの設定に不備がある

対処方法: vi ~/.ssh/configで適切な設定に変更する
参考: http://karage-ageta.hatenablog.com/entry/2016/10/11/191811

https://で始まる場合に考えられるもの

osxkeychain helperを設定していない

対処方法: https://help.github.com/articles/caching-your-github-password-in-git/

基本認証要求をされることを知らなかった

対処方法: git@のURLへ変更し、公開鍵をgithubに登録する
参考: https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/

その他ハマりそうなことなどありましたら、編集リクエスト頂けると嬉しいです。

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