我正在嘗試將一個項目部署到heroku。我正在研究win7。是否正確設置了heroku密鑰?
$ git push heroku master
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
$ heroku keys
Enter your Heroku credentials.
Email: MYREALEMAIL
Password (typing will be hidden):
=== MYREALEMAIL Keys
ssh-rsa AAAAB3NzaC...ol1Ukh0Q== [email protected]
$ heroku keys:remove [email protected]
Removing [email protected] SSH key... done
[email protected] /f/EasyPHP-12.1/www/phantomjs123 (master)
$ heroku keys
You have no keys.
$ heroku keys:add f:/.ssh/id_rsa.pub
Uploading SSH public key f:/.ssh/id_rsa.pub... done
$ heroku keys
=== MYREALEMAIL Keys
ssh-rsa AAAAB3NzaC...ol1Ukh0Q== [email protected]
$ git push heroku master
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我擔心最後一行實際上應該說:
ssh-rsa ****3NzaC...ol1Uk****== MYACTUALEMAIL
我是在這正確嗎?如果是的話我該如何解決這個問題?
我試圖遵循您的指示,請參閱更新 – user61629
.ssh/id_rsa.pub中的關鍵是什麼?看起來像你需要生成一個不是[email protected],看到我編輯與您創建一個新的id_rsa.pub電子郵件 – danmanstx
我結束了使用ssh-keygen -t rsa -C「MYEMAIL」來創建一個新的按照你的建議關鍵。 – user61629