Heroku 权限被拒绝。致命:无法从远程存储库中读取。

Posted

技术标签:

【中文标题】Heroku 权限被拒绝。致命:无法从远程存储库中读取。【英文标题】:Heroku Permission denied. fatal: Could not read from remote repository. 【发布时间】:2016-02-15 00:36:11 【问题描述】:

所以我已经尝试了我能找到的一切并且我很恐慌所以请帮忙 当我在我的应用程序上创建新的 heroku 时,它会很好地生成 然后我去 git push heroku master。 我收到错误

Jacks-MacBook-Air:morph jacksharville$ git push heroku master 权限被拒绝(公钥)。 致命:无法从远程存储库读取。

请确保您拥有正确的访问权限 并且存储库存在。

我已经尝试使用 heroku 键清除键:clear 然后我尝试运行 heroku keys:add 它仍然出现同样的错误。

如果我运行 ssh -vT git@heroku.com 这是输出

Jacks-MacBook-Air:morph jacksharville$ ssh -vT git@heroku.com
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: Connecting to heroku.com [50.19.85.154] port 22.
debug1: Connection established.
debug1: identity file /Users/jacksharville/.ssh/id_rsa type 1
debug1: identity file /Users/jacksharville/.ssh/id_rsa-cert type -1
debug1: identity file /Users/jacksharville/.ssh/id_dsa type -1
debug1: identity file /Users/jacksharville/.ssh/id_dsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.2
debug1: Remote protocol version 2.0, remote software version endosome
debug1: no match: endosome
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-sha1 none
debug1: kex: client->server aes128-ctr hmac-sha1 none
debug1: sending SSH2_MSG_KEXDH_INIT
debug1: expecting SSH2_MSG_KEXDH_REPLY
debug1: Server host key: RSA 8b:48:5e:67:0e:c9:16:47:32:f2:87:0c:1f:c8:60:ad
debug1: Host 'heroku.com' is known and matches the RSA host key.
debug1: Found key in /Users/jacksharville/.ssh/known_hosts:3
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /Users/jacksharville/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 279
debug1: Authentication succeeded (publickey).
Authenticated to heroku.com ([194.168.4.123]:53).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = en_GB.UTF-8
shell request failed on channel 0

【问题讨论】:

【参考方案1】:

没有办法轻松解决此问题。我最终解决它的方法是创建一个新应用程序并拖动资产。

【讨论】:

【参考方案2】:

如果您执行heroku auth:login 然后使用您的凭据登录会发生什么? 您是否仍然遇到同样的错误?

【讨论】:

同样的错误。我挑衅地登录了。我确实再次这样做以确保它再次发生。

以上是关于Heroku 权限被拒绝。致命:无法从远程存储库中读取。的主要内容,如果未能解决你的问题,请参考以下文章

错误:未找到存储库。致命:无法从远程存储库中读取。请确保您拥有正确的访问权限并且 repo 存在

Gitlab,权限被拒绝(公钥),版本 6-4 稳定

从 GitHub 部署 Key 问题 Capistrano

GitLab:找不到您要查找的项目。致命:在 Jenkins 中构建时无法从远程存储库中读取

致命:无法创建工作树目录“scrumwala.git。”:权限被拒绝

Cocoapods 无法安装