Help us understand the problem. What is going on with this article?

git for windows利用時のgithub接続にPermission denied (publickey)が出た時の対応

More than 3 years have passed since last update.

windowsにgitの設定しようとしたときにはまったのでメモ

git for windowsを入れて鍵をつくってgithubに登録したのに

ssh -T git@github.com

を実行したら

Permission denied (publickey)

が起きた
.sshにconfigを設定しても同様のエラー

git for windowsの場合
C:\Program Files\Git\etc\ssh\ssh_config

Host github.com
  User git
  HostName github.com
  IdentityFile (鍵の場所)
  IdentitiesOnly yes

に設定されていたのでこちらを修正し解決

参考にしたページ

http://qiita.com/ques0942/items/1a6c198c6d16ac297f2c

umema4
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした