Kevin
Kevin

Reputation: 117

Intellij IDEA fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists

I encountered a problem that I can't pull my code from my remote repository in Intellij IDEA .

Here is my error log:

When I change my SSH executable to Built-in, it shows:

enter image description here

And when I change my SSH executable to Native, it shows:

enter image description here

But it could work on my Git command line and Eclipse

enter image description here

enter image description here

Upvotes: 0

Views: 4425

Answers (2)

verb
verb

Reputation: 89

Hi i know this is old post but for anyone who has this problem ... the cause is fail in ssh key algorithm so check your ~/.ssh/config and try to fix the correct algorithm it should look like this:

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

there is no need to change ssh-executable to native

Upvotes: 0

Dmitrii Smirnov
Dmitrii Smirnov

Reputation: 7538

Is your SSH-key protected wit ha passphrase? If yes, the you could use Native only along with some SSH-agent, because native SSH executable means that IDEA expects git to establish SSH connection on its own. In this mode, IDE does not handle any prompts, so if you are prompted for a password or SSH-key passphrase, it will fail.

It is not clear why Built-in executable fails though. Make sure your keys are located in .ssh/id_rsa and .ssh/ir_rsa.pub, otherwise make sure to have proper .ssh/config file pointing to the files.

Also, Git Bash is not a valid test, because it is a standalone shell with own environment. Does pull work from the Windows Command Prompt?

Upvotes: 1

Related Questions