[
https://issues.apache.org/jira/browse/NETBEANS-2895?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Laszlo Kishalmi resolved NETBEANS-2895.
---------------------------------------
Resolution: Invalid
That is actually a bit bucket issue. They are treating the SSH URL a bit
interesting.
So istead of adding: ssh://git@[BITBUCKET_URL].git (as they display on their
page) use the following remote url:
ssh://[Bitbucket userid]@[BITBUCKET_URL].git
That took me a few months to figure out.
> Bitbucket SSH access: invalid privatekey on Bitbucket Server
> ------------------------------------------------------------
>
> Key: NETBEANS-2895
> URL: https://issues.apache.org/jira/browse/NETBEANS-2895
> Project: NetBeans
> Issue Type: Bug
> Affects Versions: 11.1
> Reporter: Andreas Ernst
> Priority: Major
>
> INFO [org.netbeans.modules.git.ui.repository.remote.SelectUriStep]: Auth
> failed when accessing ssh://git@[BITBUCKET_URL].git
> com.jcraft.jsch.JSchException: invalid privatekey: [B@190a1060
> 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:407)
> at com.jcraft.jsch.JSch.addIdentity(JSch.java:367)
> 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:
> ssh://[email protected]:57999/motd/motd-service-api.git: invalid
> privatekey: [B@190a1060
> 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:136)
> at
> org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:262)
> at
> org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:161)
> at
> org.netbeans.libs.git.jgit.commands.ListRemoteObjectsCommand.runTransportCommand(ListRemoteObjectsCommand.java:51)
> Caused: org.netbeans.libs.git.GitException$AuthorizationException:
> ssh://[email protected]:57999/motd/motd-service-api.git: invalid
> privatekey: [B@190a1060
> at
> org.netbeans.libs.git.jgit.commands.TransportCommand.handleException(TransportCommand.java:235)
> at
> org.netbeans.libs.git.jgit.commands.ListRemoteObjectsCommand.runTransportCommand(ListRemoteObjectsCommand.java:64)
> at
> org.netbeans.libs.git.jgit.commands.TransportCommand.run(TransportCommand.java:168)
> at
> org.netbeans.libs.git.jgit.commands.GitCommand$1.run(GitCommand.java:57)
> at
> org.netbeans.libs.git.jgit.commands.GitCommand$1.run(GitCommand.java:54)
> at
> java.base/java.security.AccessController.doPrivileged(AccessController.java:551)
> at
> org.netbeans.libs.git.jgit.commands.GitCommand.execute(GitCommand.java:54)
> at
> org.netbeans.libs.git.GitClient.listRemoteBranches(GitClient.java:893)
> at
> org.netbeans.modules.git.client.GitClient$36.call(GitClient.java:582)
> at
> org.netbeans.modules.git.client.GitClient$36.call(GitClient.java:578)
> at
> org.openide.util.NetworkSettings.suppressAuthenticationDialog(NetworkSettings.java:137)
> at
> org.netbeans.modules.git.client.GitClient$CommandInvoker$1$1.call(GitClient.java:931)
> at
> org.netbeans.modules.git.client.GitClient$CommandInvoker$1$1.call(GitClient.java:937)
> at
> org.netbeans.modules.git.client.GitClient$CommandInvoker$1.call(GitClient.java:956)
> at
> org.netbeans.modules.git.client.GitClient$CommandInvoker.runMethodIntern(GitClient.java:968)
> at
> org.netbeans.modules.git.client.GitClient$CommandInvoker.runMethod(GitClient.java:897)
> at
> org.netbeans.modules.git.client.GitClient$CommandInvoker.runMethod(GitClient.java:875)
> at
> org.netbeans.modules.git.client.GitClient$CommandInvoker.access$400(GitClient.java:869)
> at
> org.netbeans.modules.git.client.GitClient.listRemoteBranches(GitClient.java:578)
> [catch] at
> org.netbeans.modules.git.ui.repository.remote.SelectUriStep$2.perform(SelectUriStep.java:240)
> at
> org.netbeans.modules.git.client.GitProgressSupport.performIntern(GitProgressSupport.java:92)
> at
> org.netbeans.modules.git.client.GitProgressSupport.run(GitProgressSupport.java:85)
> at
> org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
> at
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
> at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
> at
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
> WARNING [org.netbeans.modules.progress.spi.InternalHandle]: Cannot call
> progress on a task that was never started at
> org.netbeans.modules.git.client.GitProgressSupport.setProgressMessage(GitProgressSupport.java:258)
>
> Product Version = Apache NetBeans IDE 11.1
> Operating System = Mac OS X version 10.14.6 running on x86_64
> Java; VM; Vendor = 12.0.1; OpenJDK 64-Bit Server VM 12.0.1+12;
> Oracle Corporation
> Runtime = OpenJDK Runtime Environment 12.0.1+12
> Using the terminal:
> Andreas-MacBook-Pro:motd-service-api andreas$ git version
> git version 2.20.1 (Apple Git-117)
> No issuses, also with Atlassian Sourcetree.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists