mpo*_*nik 3 key heroku public-key
我安装了Windows 7 Home Premium:
gem 1.8.24
ruby 1.9.3p385
node 0.8.19
git 1.8.1.msysgit.
heroku/toolbelt/2.35.0 (i386-mingw32) ruby/1.9.3
Run Code Online (Sandbox Code Playgroud)
我可以通过以下方式成功登录heroku : heroku login. 即使我清除了密钥:heroku keys:clear并生成新密钥,heroku keys:add我也取得了成功!
当我登录heroku网页 - >我的帐户时,我已正确添加密钥.我作为合作者加入了项目.
git remote add heroku-s git@heroku.com:secret-project.git
Run Code Online (Sandbox Code Playgroud)
问题是,当我尝试将文件推送到heroku时:
git push heroku-s master
Run Code Online (Sandbox Code Playgroud)
我收到错误:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Run Code Online (Sandbox Code Playgroud)
有什么建议?
尝试重新生成公钥(id_pub.rsa),然后再将其添加到heroku.
ssh-keygen -t rsa -C "your_email@youremail.com"
heroku keys:clear
heroku keys:add
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1641 次 |
| 最近记录: |