LoginSignup
21

More than 5 years have passed since last update.

posted at

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

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

参考にしたページ

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
What you can do with signing up
21