LoginSignup
5
6

More than 5 years have passed since last update.

Githubリポジトリへpush時にSSHキーが原因でエラー

Posted at

スクリーンショット_2015-12-11_7_52_21.png

新しくOrganizationを作成し、リポジトリを作成してからいつものようにQuick setupの通りにpushをした際にエラーが起きました。

# % git push -u origin master
ERROR: Sorry, but @hoge 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/xxxxxxx/policy

Otherwise, please upload a new key:

  https://github.com/settings/ssh

Fingerprint: 

[EPOLICYKEYAGE]

fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

???と思いつつ、提示されている https://github.com/settings/ssh/audit/xxxxxxx/policy へアクセスしました。

スクリーンショット_2015-12-11_7_51_14.png

Please audit your SSH key
One of your organizations has blocked access for SSH keys created by untrusted third-party applications. If you created and imported this key yourself, you can approve it for access to your organization repositories. If you have any doubts about this key, you should delete it and upload a new one.

Get help verifying fingerprints.
あなたのSSHキーを監査してください
あなたの組織の一つは、信頼されていないサードパーティ製のアプリケーションで作成されたSSHキーへのアクセスをブロックしました。あなたがあなた自身を作成し、このキーをインポートした場合、あなたはあなたの組織のリポジトリへのアクセスのためにそれを承認することができます。 このキーに疑問を持っている場合、あなたはそれを削除しなければならない新しいものをアップロード。

指紋を検証する助けを得ます。

信頼性の無いSSHキーからのアクセスなので、ブロックしましたよとのこと。
一旦、Approveをクリックする。

スクリーンショット 2015-12-11 7.59.23.png

 Please audit your SSH keys
For your protection and to prevent unauthorized access we have disabled your public keys. Please approve or reject the keys listed below before continuing to your account.

Get help verifying fingerprints.
あなたのSSHキーを監査してください
不正アクセスを防止するために、あなたの保護とのために我々はしているあなたの公開鍵を無効に。あなたのアカウントに進む前に、以下に記載されているキーを承認または拒否してください。

指紋を検証する助けを得ます。

ザッと今までに登録したSSHキーの一覧が表示され、「他に認証するSSHキーはある?」と聞かれました。

先ほどのSSHキーしか使わない予定なので、とりあえずpushしてみる。

# % git push -u origin master                                                                                                                                                                                      
Counting objects: 9, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (9/9), 1.37 KiB | 0 bytes/s, done.
Total 9 (delta 0), reused 0 (delta 0)
 * [new branch]      master -> master
Branch master set up to track remote branch master from origin.

出来ました!

5
6
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
5
6