The problem is that your local SSH client and the remote endpoint in GitHub cannot agree on a common key exchange method.
This will happen when you dig into the set of available key exchange methods or use a very old and outdated SSH client that does not support any method that is still considered safe.
, GitHub: .
, SSH:
export GIT_SSH_COMMAND="ssh -vv"
, config_ssh
~/.ssh/.config
, . , Host *
:
# Github needs diffie-hellman-group-exchange-sha1 some of the
# time but not always.
Host github.com
KexAlgorithms curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1