Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
18
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

@umema4

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

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

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

参考にしたページ

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
18
Help us understand the problem. What are the problem?