<現象>
と、Gitで Permission denied (publickey). と言われてエラー
<原因>
Git の ssh の設定 に公開 (~/.ssh/id_rsa.pub) を登録していない
<解決方法>
1.Gitのターミナルにて
2.C:\Users\『PCのユーザー名』\.ssh\id_rsa.pub
に記載されている公開鍵をGitに登録
$ git push -u origin master Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
と、Gitで Permission denied (publickey). と言われてエラー
<原因>
Git の ssh の設定 に公開 (~/.ssh/id_rsa.pub) を登録していない
<解決方法>
1.Gitのターミナルにて
$ ssh-keygen -t rsaと入力
2.C:\Users\『PCのユーザー名』\.ssh\id_rsa.pub
に記載されている公開鍵をGitに登録
コメントをかく