Suddenly he can’t click on the hero: “failed to agree on a key exchange method”

"git push heroku" suddenly fails. (I installed Node.js, and I think it might have updated some things and somehow broken.)

I read all related posts; this does not tell me what kind of exchange was “offered”, and everything looks as if it matches, but the challenge fails, and I am at a loss.
I made heroku auth: login successfully.

ssh git@heroku.com -v gives me the following:

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 hmac-sha2-256-etm@openssh.com none
debug1: kex: client->server aes128-ctr hmac-sha2-256-etm@openssh.com none
Unable to negotiate a key exchange method
+4
source share
4 answers

This morning I ran into the same problem.

I can avoid this problem by changing the git of the remote url as shown below.

from: 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

+8

. , ssh. , . mac homebrew, openssh. : brew install openssh

git push heroku master .

Linux, , , apt-get.

+4

-, , URL- ssh

git remote -v

C:/Users/jeff/.ssh/config, heroku.com, .

URL- https, ~/_netrc, HTTP Heroku".
ssh . SSH- heroku keys:add.

0

. , , , ssh. brew install openssh ( , - , Mac) , - , URL- HTTPS. :

https://git.heroku.com/YOUR-APP-NAME.git

0

Source: https://habr.com/ru/post/1687819/


All Articles