[英]Windows Git-bash fatal: Could not read from remote repository. when pushing through ssh
我正在使用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.
请确保您具有正确的访问权限,并且存储库存在。
您可以检查以下几种可能性:
希望这可以帮助
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.