![](/img/trans.png)
[英]Git : fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists
[英]Intellij IDEA fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists
您的SSH密鑰受密碼保護嗎? 如果是,則您只能將本機與某些SSH代理一起使用,因為本機SSH可執行文件意味着IDEA期望git自己建立SSH連接。 在這種模式下,IDE不處理任何提示,因此,如果提示您輸入密碼或SSH密鑰密碼,它將失敗。
目前尚不清楚為什么內置可執行文件會失敗。 確保您的密鑰位於.ssh / id_rsa和.ssh / ir_rsa.pub中,否則請確保具有指向該文件的正確的.ssh / config文件。
另外,Git Bash也不是有效的測試,因為它是具有自己環境的獨立shell。 Windows命令提示符是否可以拉動?
嗨,我知道這是舊帖子,但是對於任何有此問題的人...原因是ssh密鑰算法失敗,因此請檢查您的〜/ .ssh / config並嘗試修復正確的算法,它應如下所示:
Host 192.168.9.1
HostKeyAlgorithms ssh-dss
KexAlgorithms +diffie-hellman-group1-sha1
Host 192.168.10.13
HostKeyAlgorithms rsa-sha2-256
KexAlgorithms diffie-hellman-group-exchange-sha256
無需將ssh-executable更改為native
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.