前提・実現したいこと
MacでSourcetreeを使って、githubにプッシュしたいです。
Sourcetreeはインストール済です。githubのリモートを作成しました。
Sourcetreeにログインし、コミットして、プッシュしたいのですが
「Permission denied (publickey). 」と、エラーが出て出来ません。
GitHub の sshの設定に~/.ssh/id_rsa.pubをコピペして
登録してみたのですが、同じようにエラーが出てしまいます。
発生している問題・エラーメッセージ
refs/heads/master:refs/heads/master Pushing to git@github.com:ユーザー名/●●.git git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Pushing to git@github.com:ユーザー名/●●.git git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.
補足情報(FW/ツールのバージョンなど)
Sourcetreeのバージョンは2.6.3です。
試したこと
$ ssh -T git@github.comと入力すると、
Hi <ユーザー名>! You've successfully authenticated, but GitHub does not provide shell access.
と出ます。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。