git with IntelliJ IDEA: Could not read from remote repository

前端 未结 30 1989
夕颜
夕颜 2020-12-07 08:11

Since a few weeks, I\'m not able to pull or push from or to the remote repository. I thought it happend when upgrading to IntelliJ IDEA 14, but I can reproduce the problem w

相关标签:
30条回答
  • 2020-12-07 08:21

    this helped me to fix current issue

    If you're using macOS Sierra 10.12.2 or later, you will need to modify your ~/.ssh/config file to automatically load keys into the ssh-agent and store passphrases in your keychain.

    Host *
     AddKeysToAgent yes
     UseKeychain yes
     IdentityFile ~/.ssh/id_rsa
    

    source

    0 讨论(0)
  • 2020-12-07 08:21

    The only thing that helped in my case (switch SSH-executabe did not work) was to deactivate the git and git-flow plugin, restart intellij and reactivate those plugins again...

    0 讨论(0)
  • 2020-12-07 08:22

    I've resolved this by adding my SSH private key to the ssh-agent in the command:

    $ ssh-add -K ~/.ssh/id_rsa
    

    And setting Settings --> Version Control --> Git, and then, in the SSH executable dropdown, choose Native

    0 讨论(0)
  • 2020-12-07 08:22

    Check Idea proxy settings if you are trying to connect to cloud services like github or bitbucket. This can be done by looking for plugins to install or by checking for software updates in the help menu. If the internet/proxy settings are not correct add valid entries or set it to auto

    0 讨论(0)
  • 2020-12-07 08:23

    I had this issue with WebStorm recently (February/2018) and none of the (then) previous solutions worked for me. After spending some hours on troubleshooting and researching, I installed the 2018 EAP version and now it works!


    A new issue reported on December/2017 on IntelliJ Idea > VCS/Git subsystem which was fixed in build 181.2445 (or any latest build after 31/Jan/2018).

    See also the post Update-ssh-key-to-use-new-passphrase

    0 讨论(0)
  • 2020-12-07 08:23

    I tried Native option but does not work for me, finally regenerate ssh key in old way and add -m option in ssh-keygen command. also IDEA works with build-in option as fine.

    ssh-keygen -m PEM -t rsa -b 4096 -C "email@..."
    
    0 讨论(0)
提交回复
热议问题