git push heroku master权限被拒绝(publickey) [英] git push heroku master Permission denied (publickey)
问题描述
编辑#3
在顶部更新它是因为它解决了我的问题,并为我提供了一个我不知道的故障排除步骤) 尝试获取 删除Emacs ssh文件夹(这是空的)修复了我的问题,因为ssh会检查我的用户.ssh文件夹。 当试图 有几件事情与以下的帖子不同: 我能找到的最近的是这篇文章: 我浏览过相关的问题(有很多): git push heroku master权限被拒绝(publickey)。致命:远程端意外挂断 我试过了:
的输出ssh -vvv git@heroku.com
。对我来说,当我的公钥位于/c/Users/NumberOverZero/.ssh中时,ssh被挂在/ c / Program Files(x86)/Emacs/.ssh中的键上。
$ b
git push heroku master
时,我得到 Permission denied(publickey)
/ p>
git推Heroku master权限被拒绝
git clone heroku ssh权限被拒绝
https:// stackoverflow .com / questions / 13059076 / git-push-permission-denied-publickey-windows-x
heroku - rails - Permission denied(publickey)
heroku keys:clear
heroku keys:add
heroku键:清除
*删除.ssh中的每个键值*
heroku keys:add
* delete my appli阳离子on heroku *
heroku键:清除
heroku登录(为我添加键)
heroku创建
git push heroku master
失败
*删除heroku上的应用程序*
删除.ssh中的键
heroku keys:清除
将所有文件复制到一个新的存储库中
将新的存储库成功推送到github
heroku登录(为我添加github密钥)
heroku创建
git push heroku master
失败
*删除heroku上的应用程序*
heroku键:清除
heroku登录(为我添加键)
heroku创建
heroku git:克隆应用程序应用程序
失败
任何想法?我已经完成了链接SO中的所有步骤 - 其中大部分只是没有运行heroku的人:添加或设置ssh密钥(这些密钥都在这些密钥中完成)。
我假设内置命令在没有ssh密钥的情况下可以完成他们所需要的操作,我们让heroku大部分时间都在使用(而不是直接创建ssh密钥)。这似乎不是。
编辑:现在我删除了应用程序,新的文物插件惊动网站关闭。试图通过他们的网站登录要求我通过heroku登录。我无法找到一种方法,因为该应用程序已经消失。有没有办法删除该插件,现在我无法访问该应用程序? heroku addons
提供了一个错误,所以我不认为我通过那里得到它。
编辑#2 :添加了另一个步骤,我尝试了 - 将文件移动到新的存储库并推送到新的应用程序。 你可能在你的本地终端会话中有些东西已经丢失了。 (我曾经发生过这样的事情) 事情可能是这样的: 我遇到过这一次,这让我疯狂。我跳上我的(免费)cloud9帐户,从github克隆了一些简单的rails应用程序,并将其推送到heroku,这帮助我证明了我的heroku帐户是好的,heroku本身很好,但我的本地笔记本电脑在我的配置中有一些问题。 Updating this at the top because it solved my issue and gave me a good troubleshooting step I didn't know about (and could save you some time, too) Try getting the output of Deleting the Emacs ssh folder (which was empty) fixed my issue since ssh would then check my Users .ssh folder. I'm getting A few things that makes this different from the posts below: The closest I could find was this post: git clone heroku ssh permission denied I've looked through the related issues (there's quite a few): git push heroku master Permission denied (publickey). fatal: The remote end hung up unexpectedly I've tried:
我认为问题是我的用户名,但我不记得。 (转移到另一个env,从头开始帮助我意识到这个问题,尽管)Edit #3
ssh -vvv git@heroku.com
. For me, ssh was getting hung up on trying keys in /c/Program Files (x86)/Emacs/.ssh when my public key was in /c/Users/NumberOverZero/.ssh
Permission denied (publickey)
when trying to git push heroku master
.
git push heroku master permission denied
git clone heroku ssh permission denied
https://stackoverflow.com/questions/13059076/git-push-permission-denied-publickey-windows-xp
heroku - rails - Permission denied (publickey)
heroku keys:clear
heroku keys:add
heroku keys:clear
*delete every key in .ssh*
heroku keys:add
*delete my application on heroku*
heroku keys:clear
heroku login (adds key for me)
heroku create
git push heroku master
fails
*delete the app on heroku*
delete keys in .ssh
heroku keys:clear
copy all files into a new repository
push new repository to github successfully
heroku login (adds github key for me)
heroku create
git push heroku master
fails
*delete the app on heroku*
heroku keys:clear
heroku login (adds key for me)
heroku create
heroku git:clone app app
fails
Any ideas? I've gone through all of the steps in the linked SOs - most of which were just people not running heroku:add or setting up ssh keys (which I've done in each of these).
I let heroku take the wheel most of the time, (instead of directly creating ssh keys) assuming that the built-in commands would do what they needed when there were no ssh keys present. It seems not.
EDIT: And now that I deleted the app, the new relic addon is alarming that the website is down. Trying to log in through their website asks me to log in through heroku. Which I can't find a way to do, since the app is gone. Is there a way to delete that addon now that I can't get to the app? heroku addons
gives an error, so I don't think I'm getting to it through there.
EDIT #2: Added another step I tried - moved files into new repository and push to new application.
Nice job linking to all the other things you've looked at and tried! (that will improve the responses you get, but still you should be prepared for a lot of 'have you tried...', and 'maybe it's ...' because this is a system/env issue that isn't on the normal flow)
You might have had something working in your local terminal session that has since been lost. (I've had this happen a bunch of times)
Things it might be:
- your ssh keys on heroku
- your ability to push up to heroku from that computer/network
- something about your git repo
I ran into this once and it was driving me crazy. I hopped on my (FREE) cloud9 account, cloned some simple rails app from github and pushed it out to heroku, which helped me prove that my heroku account was fine, heroku itself was fine, but my local laptop had some issues in my configuration. I think the issue was my username, but I don't remember. (moving to a different env and starting from scratch helped me realize the issue though)
这篇关于git push heroku master权限被拒绝(publickey)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!