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

时间:2015-11-13 12:16:35

标签: ruby-on-rails git heroku github ssh

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

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

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

我尝试用heroku键清除键​​:清除 然后我尝试运行heroku键:添加 它仍然会出现同样的错误。

如果我运行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

2 个答案:

答案 0 :(得分:0)

如果您执行heroku auth:login然后使用凭据登录会怎样? 你还得到同样的错误吗?

答案 1 :(得分:0)

无法轻易解决这个问题。我最终绕过它的方式是创建一个新的应用程序并拖动资产。