Comment actions Permalink

If any one else runs into this with webstorm version 2017.3 I was getting this error when I had the codecommit remote setup with ssh.

java.io.IOException: Authentication failed:
at org.jetbrains.git4idea.ssh.SSHMain.authenticate(SSHMain.java:300)
at org.jetbrains.git4idea.ssh.SSHMain.start(SSHMain.java:174)
at org.jetbrains.git4idea.ssh.SSHMain.main(SSHMain.java:137)
Caused by: java.io.IOException: Publickey authentication failed.
at com.trilead.ssh2.auth.AuthenticationManager.authenticatePublicKey(AuthenticationManager.java:314)
at com.trilead.ssh2.Connection.authenticateWithPublicKey(Connection.java:466)
at org.jetbrains.git4idea.ssh.SSHMain.tryPublicKey(SSHMain.java:353)
at org.jetbrains.git4idea.ssh.SSHMain.authenticate(SSHMain.java:245)
... 2 more
Caused by: java.io.IOException: Invalid PEM structure, '-----BEGIN...' missing
at com.trilead.ssh2.crypto.PEMDecoder.parsePEM(PEMDecoder.java:138)
at com.trilead.ssh2.crypto.PEMDecoder.decode(PEMDecoder.java:313)
at com.trilead.ssh2.auth.AuthenticationManager.authenticatePublicKey(AuthenticationManager.java:223)
... 5 more
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

I changed the git client to use the native client instead of the built-in one going to Preferences > Version Control > Git > SSH Executable: > Native

And that fixed my issues.


Please sign in to leave a comment.