On Jan 19, 2021 at 4:26:08 PM, Thomas Wolf <tjw...@gmail.com> wrote: > Hey everyone, > I’ve got Nebeans 11.3 on macOS 11.2 and am trying to push my local changes > to a recently created remote git repository. But NB keeps telling me about > invalid credentials (I used ssh private key) and when I look into the IDE > log, I see this: > > Caused: org.netbeans.libs.git.GitException$AuthorizationException: > g...@xx.yy.zz.aa:SST.git: invalid privatekey: [B@1cc41291 > at > org.netbeans.libs.git.jgit.commands.TransportCommand.handleException(TransportCommand.java:235) > … > > There was a little bit more stack trace above the lines I gave which may provide more information:
com.jcraft.jsch.JSchException: invalid privatekey: [B@76e69deb at com.jcraft.jsch.KeyPair.load(KeyPair.java:664) at com.jcraft.jsch.KeyPair.load(KeyPair.java:561) at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:40) at com.jcraft.jsch.JSch.addIdentity(JSch.java:406) at com.jcraft.jsch.JSch.addIdentity(JSch.java:366) at org.netbeans.libs.git.jgit.JGitSshSessionFactory.setupJSchIdentityRepository(JGitSshSessionFactory.java:184) at org.netbeans.libs.git.jgit.JGitSshSessionFactory.setupJSch(JGitSshSessionFactory.java:197) Caused: org.eclipse.jgit.errors.TransportException: git@73.194.145.50:SST.git: invalid privatekey: [B@76e69deb at org.netbeans.libs.git.jgit.JGitSshSessionFactory.setupJSch(JGitSshSessionFactory.java:199) at org.netbeans.libs.git.jgit.JGitSshSessionFactory.getSession(JGitSshSessionFactory.java:106) at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:140) at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:280) at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:170) at org.netbeans.libs.git.jgit.commands.ListRemoteObjectsCommand.runTransportCommand(ListRemoteObjectsCommand.java:51) … Not sure how com.jcraft and org.eclipse packages are in the picture - are those just libs NB uses? thnx again for any help, Tom