“git Push heroku”突然失败了。 (我安装了 Node.js,我认为它可能升级了一些东西并以某种方式破坏了它。)
我读过所有类似的帖子;它没有告诉我“提供”了哪个交换,并且一切看起来都匹配,但是调用失败,我不知所措。
我成功执行了heroku auth:login。
ssh [email protected] /cdn-cgi/l/email-protection -v
给了我以下内容:
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /Users/jeff/.ssh/config
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for * <This line is 'Host *'>
debug1: Connecting to heroku.com [50.19.85.156] port 22.
debug1: Connection established.
debug1: identity file /Users/jeff/.ssh/id_rsa type 1
debug1: identity file /Users/jeff/.ssh/id_rsa-cert type -1
debug1: identity file /Users/jeff/.ssh/id_dsa type -1
debug1: identity file /Users/jeff/.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 [email protected] /cdn-cgi/l/email-protection none
debug1: kex: client->server aes128-ctr hmac-sha2-256[email protected] /cdn-cgi/l/email-protection none
Unable to negotiate a key exchange method
今天早上我遇到了同样的问题。
我可以通过更改 git 远程 url 来避免这个问题,如下所示。
from:
[电子邮件受保护] /cdn-cgi/l/email-protection:应用程序名称.git
to:
https://git.heroku.com/app-name.git https://git.heroku.com/app-name.git
你可以使用下面的命令
git remote rm heroku
git remote add heroku https://git.heroku.com/app-name.git
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)