IntelliJ error: 'Repository test has failed'

Answered

Hi,

I've created SSH keys for accessing Bitbucket and while git clone works through Terminal, in IntelliJ the connection errors. In Terminal, the command 'ssh -T git@bitbucket.org' tells me I'm logged in.

In the idea.log I get:

2018-02-28 12:01:26,947 [ 285978] INFO - #git4idea.commands.GitHandler - java.io.IOException: Authentication failed:
2018-02-28 12:01:26,948 [ 285979] INFO - #git4idea.commands.GitHandler - at org.jetbrains.git4idea.ssh.SSHMain.authenticate(SSHMain.java:300)
2018-02-28 12:01:26,948 [ 285979] INFO - #git4idea.commands.GitHandler - at org.jetbrains.git4idea.ssh.SSHMain.start(SSHMain.java:174)
2018-02-28 12:01:26,948 [ 285979] INFO - #git4idea.commands.GitHandler - at org.jetbrains.git4idea.ssh.SSHMain.main(SSHMain.java:137)
2018-02-28 12:01:26,955 [ 285986] INFO - #git4idea.commands.GitHandler - fatal: Could not read from remote repository.
2018-02-28 12:01:26,955 [ 285986] INFO - #git4idea.commands.GitHandler - Please make sure you have the correct access rights
2018-02-28 12:01:26,955 [ 285986] INFO - #git4idea.commands.GitHandler - and the repository exists.

Can someone help me work out why IntelliJ is unhappy when Bitbucket seems to be happy via command line?

Thank you,

Mike

0
2 comments

Hello,

Please try to set SSH executable to "Native" in "Settings | Version Control | Git". If it doesn't help please provide idea.log ("Help | Show Log in...") after restarting IDE and reproducing. You could use any online sharing service or our FTP: https://intellij-support.jetbrains.com/hc/en-us/articles/207241235-Reporting-performance-problems

1
Avatar
Permanently deleted user

Yes, switching to 'Native' solved the problem. Thank you for getting back to me.

0

Please sign in to leave a comment.