いつもお世話になっております。
ローカルで作っているサイトをGithubとBitbucketにpushしたいと思い、
git remote add
でリモートを登録したのですが、
いざpushするとエラーになってしまいます。
$ git push bit master Warning: Permanently added the RSA host key for IP address 'xxx.xxx.xxx.x' to the list of known hosts. repository access denied. deployment key is not associated with the requested repository. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
公開鍵を登録しなくてはいけないのかなと思い、
~/.ssh/id_rsa.pub
の中身をコピーしてBitbucketのssh鍵に登録しようとしたところ、
「これは既にデプロイ鍵として登録されています」と言われてしまい、登録ができませんでした。
解決方法をご教授いただきたく思います。
どうぞよろしくお願いいたします。
タイトルのエラー内容と本文のエラー内容が違うように思えます。本文が正しいという認識で間違っていないでしょうか?

ご指摘ありがとうございます。タイトルが正しいです。修正いたしました。

回答2件
あなたの回答
tips
プレビュー