[英]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.