【发布时间】:2019-07-03 15:45:12
【问题描述】:
我正在使用 Windows Git-bash 通过 ssh(不是 https)推送到我的存储库。我已按照此页面中的说明进行操作
https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/
$ ssh-keygen -t rsa -b 4096 -C "barghouti_since88@hotmail.com"
$ ssh-add ~/.ssh/id_rsa
然后复制 ~/.ssh/id_rsa 中的密钥,并按照此设置将其复制到我在 github 帐户中的 ssh 密钥
https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/
但是现在当我尝试使用推送时
$git add file
$git commit -m "adding file"
$git push
我收到以下内容
FATAL ERROR: Couldn't agree a key exchange algorithm (available: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521)
fatal: Could not read from remote repository.
请确保您拥有正确的访问权限 并且存储库存在。
【问题讨论】:
-
请显示 git remote show origin.
标签: windows git github ssh git-bash