LoginSignup
24
21

More than 5 years have passed since last update.

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

Posted at

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

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

参考にしたページ

24
21
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
24
21