[git] cannot push/pull: Authentication failed ?
When I just switched my machine from Windows to MacOS, pulling/pushing stopped working.
The odd thing is: it works in the terminal. So the SSH is setup correctly.
I think Intellij somehow does not "find" the keys ..
Any ideas?
PS: My configuration is Intellij 11.1.3, MacOS Mountain Lion, git 1.7.9.6, Java 6
10:08:42.648: git push origin master:master
SSH: authentication methods: [publickey, keyboard-interactive, password] last successful method:
java.io.IOException: Authentication failed:
at org.jetbrains.git4idea.ssh.SSHMain.authenticate(SSHMain.java:281)
at org.jetbrains.git4idea.ssh.SSHMain.start(SSHMain.java:156)
at org.jetbrains.git4idea.ssh.SSHMain.main(SSHMain.java:136)
Caused by: java.lang.RuntimeException: Invocation failed java.lang.Exception: java.lang.AssertionError
at org.jetbrains.git4idea.ssh.GitSSHXmlRpcClient.askPassphrase(GitSSHXmlRpcClient.java:112)
at org.jetbrains.git4idea.ssh.SSHMain.tryPublicKey(SSHMain.java:310)
at org.jetbrains.git4idea.ssh.SSHMain.authenticate(SSHMain.java:214)
... 2 more
Caused by: org.apache.xmlrpc.XmlRpcException: java.lang.Exception: java.lang.AssertionError
at org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeException(XmlRpcClientResponseProcessor.java:104)
at org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeResponse(XmlRpcClientResponseProcessor.java:71)
at org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:73)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:194)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:185)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:178)
at org.jetbrains.git4idea.ssh.GitSSHXmlRpcClient.askPassphrase(GitSSHXmlRpcClient.java:109)
... 4 more
fatal: The remote end hung up unexpectedly
Please sign in to leave a comment.
Is your private key protected with a passphrase?
Thanks for answering!
Yes, it is. Can I somehow "unlock" it ?
It seems to be an error happening in the underlying library that is used by IDEA. I can't say right now, why. Could you please fire a bug against this to our tracker: http://youtrack.jetbrains.com/
Until that is fixed, the workaround is to switch to the native SSH (Settings | Version Control | Git | SSH Executable | Native).
But to make it work with a passphrase you'll have to add the private key to the Mac OS X Keychain.
Using "native" SSH Executable works, thank you.
I also created the ticket: http://youtrack.jetbrains.com/issue/IDEA-90604