[jira] [Commented] (NETBEANS-6067) git over ssh: "Incorrect credentials for repository"
[ https://issues.apache.org/jira/browse/NETBEANS-6067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17497051#comment-17497051 ] Edward commented on NETBEANS-6067: -- I am running Fedora 35 and NetBeans 12.6. I get incorrect credentials when I attempt a git push. It works fine on the command line so I can up with a workaround until this issue is resolved. *Workaround:* Perform a commit using the GUI in NetBeans then on the command line run "git push" in the folder containing your project and/or local git repository. *Problems:* JSch only supports weak ssh-rsa which is disabled by default in OpenSSH 8.8 JSch has not been updated since 2018 according to SourceForce Problematic key headers due to OpenSSH 7.8 or newer having "-BEGIN OPENSSH PRIVATE KEY-" instead of "-BEGIN RSA PRIVATE KEY-" Replacing the official JSch JAR file with the one by mwiede did not work for me, looks like NetBeans hard-coded something in their version of EGit. *More References:* JSch Last SourceForge Update https://sourceforge.net/projects/jsch/files/jsch/ Invalid Private Key When Using JSch https://stackoverflow.com/questions/53134212/invalid-privatekey-when-using-jsch > git over ssh: "Incorrect credentials for repository" > > > Key: NETBEANS-6067 > URL: https://issues.apache.org/jira/browse/NETBEANS-6067 > Project: NetBeans > Issue Type: Bug > Components: versioncontrol - Git >Affects Versions: 12.5, 12.6 > Environment: Debian 11 Bullseye > NetBeans 12.5 > java version "1.8.0_172" > Java(TM) SE Runtime Environment (build 1.8.0_172-b11) > Java HotSpot(TM) 64-Bit Server VM (build 25.172-b11, mixed mode) > git version 2.30.2 > ssh 1:8.4p1-5 >Reporter: Ronald Feicht >Priority: Major > > When I try to "git fetch" from our git server I receive the following error: > "Incorrect credentials for repository at > ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary" even though the > user name and password are correct. > When I uncheck "Save Password" (edit: and provide the correct password) the > git fetch completes without error. > When I use Netbeans 12.4 the git fetch also works with and without "Save > Password". > tail ~/.netbeans/12.5/var/log/messages.log : > INFO [org.netbeans.modules.git.ui.repository.remote.SelectUriStep]: Auth > failed when accessing > ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary > com.jcraft.jsch.JSchException: Auth fail > at com.jcraft.jsch.Session.connect(Session.java:519) > at > org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:112) > Caused: org.eclipse.jgit.errors.TransportException: > ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary: Auth fail > at > org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:158) > at > org.netbeans.libs.git.jgit.JGitSshSessionFactory.getSession(JGitSshSessionFactory.java:100) > at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:107) > at > org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.(TransportGitSsh.java:247) > at > org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:137) > at > org.netbeans.libs.git.jgit.commands.ListRemoteObjectsCommand.runTransportCommand(ListRemoteObjectsCommand.java:51) > Caused: org.netbeans.libs.git.GitException$AuthorizationException: > ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary: Auth fail > 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.security.AccessController.doPrivileged(Native Method) > 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:138) > 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 >
[jira] [Commented] (NETBEANS-6067) git over ssh: "Incorrect credentials for repository"
[ https://issues.apache.org/jira/browse/NETBEANS-6067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17477007#comment-17477007 ] Ronald Feicht commented on NETBEANS-6067: - It is a regular git server hosted on our own hardware in our LAN. The ssh keys and everything else is set up correctly or otherwise it would not have worked with Netbeans versions up to and including 12.4 > git over ssh: "Incorrect credentials for repository" > > > Key: NETBEANS-6067 > URL: https://issues.apache.org/jira/browse/NETBEANS-6067 > Project: NetBeans > Issue Type: Bug > Components: versioncontrol - Git >Affects Versions: 12.5, 12.6 > Environment: Debian 11 Bullseye > NetBeans 12.5 > java version "1.8.0_172" > Java(TM) SE Runtime Environment (build 1.8.0_172-b11) > Java HotSpot(TM) 64-Bit Server VM (build 25.172-b11, mixed mode) > git version 2.30.2 > ssh 1:8.4p1-5 >Reporter: Ronald Feicht >Priority: Major > > When I try to "git fetch" from our git server I receive the following error: > "Incorrect credentials for repository at > ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary" even though the > user name and password are correct. > When I uncheck "Save Password" (edit: and provide the correct password) the > git fetch completes without error. > When I use Netbeans 12.4 the git fetch also works with and without "Save > Password". > tail ~/.netbeans/12.5/var/log/messages.log : > INFO [org.netbeans.modules.git.ui.repository.remote.SelectUriStep]: Auth > failed when accessing > ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary > com.jcraft.jsch.JSchException: Auth fail > at com.jcraft.jsch.Session.connect(Session.java:519) > at > org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:112) > Caused: org.eclipse.jgit.errors.TransportException: > ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary: Auth fail > at > org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:158) > at > org.netbeans.libs.git.jgit.JGitSshSessionFactory.getSession(JGitSshSessionFactory.java:100) > at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:107) > at > org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.(TransportGitSsh.java:247) > at > org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:137) > at > org.netbeans.libs.git.jgit.commands.ListRemoteObjectsCommand.runTransportCommand(ListRemoteObjectsCommand.java:51) > Caused: org.netbeans.libs.git.GitException$AuthorizationException: > ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary: Auth fail > 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.security.AccessController.doPrivileged(Native Method) > 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:138) > 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 >
[jira] [Commented] (NETBEANS-6067) git over ssh: "Incorrect credentials for repository"
[ https://issues.apache.org/jira/browse/NETBEANS-6067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17476629#comment-17476629 ] Eric Bresie commented on NETBEANS-6067: --- Without that server, is there any details about the git server in use? How can this be reproduced outside of that environment? Are private/public keys setup correctly in the environment? https://netbeans.apache.org/kb/docs/ide/git.html > git over ssh: "Incorrect credentials for repository" > > > Key: NETBEANS-6067 > URL: https://issues.apache.org/jira/browse/NETBEANS-6067 > Project: NetBeans > Issue Type: Bug > Components: versioncontrol - Git >Affects Versions: 12.5, 12.6 > Environment: Debian 11 Bullseye > NetBeans 12.5 > java version "1.8.0_172" > Java(TM) SE Runtime Environment (build 1.8.0_172-b11) > Java HotSpot(TM) 64-Bit Server VM (build 25.172-b11, mixed mode) > git version 2.30.2 > ssh 1:8.4p1-5 >Reporter: Ronald Feicht >Priority: Major > > When I try to "git fetch" from our git server I receive the following error: > "Incorrect credentials for repository at > ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary" even though the > user name and password are correct. > When I uncheck "Save Password" (edit: and provide the correct password) the > git fetch completes without error. > When I use Netbeans 12.4 the git fetch also works with and without "Save > Password". > tail ~/.netbeans/12.5/var/log/messages.log : > INFO [org.netbeans.modules.git.ui.repository.remote.SelectUriStep]: Auth > failed when accessing > ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary > com.jcraft.jsch.JSchException: Auth fail > at com.jcraft.jsch.Session.connect(Session.java:519) > at > org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:112) > Caused: org.eclipse.jgit.errors.TransportException: > ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary: Auth fail > at > org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:158) > at > org.netbeans.libs.git.jgit.JGitSshSessionFactory.getSession(JGitSshSessionFactory.java:100) > at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:107) > at > org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.(TransportGitSsh.java:247) > at > org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:137) > at > org.netbeans.libs.git.jgit.commands.ListRemoteObjectsCommand.runTransportCommand(ListRemoteObjectsCommand.java:51) > Caused: org.netbeans.libs.git.GitException$AuthorizationException: > ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary: Auth fail > 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.security.AccessController.doPrivileged(Native Method) > 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:138) > 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 >
[jira] [Commented] (NETBEANS-6067) git over ssh: "Incorrect credentials for repository"
[ https://issues.apache.org/jira/browse/NETBEANS-6067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17476626#comment-17476626 ] Eric Bresie commented on NETBEANS-6067: --- Not sure if this is related but (i.e. this doesn’t seem to be a GitHub repository) but github at least changes some of it’s authentication interfaces. Could this impact things in any way? See https://www.gitkraken.com/blog/2021-github-authentication-policy-change > git over ssh: "Incorrect credentials for repository" > > > Key: NETBEANS-6067 > URL: https://issues.apache.org/jira/browse/NETBEANS-6067 > Project: NetBeans > Issue Type: Bug > Components: versioncontrol - Git >Affects Versions: 12.5, 12.6 > Environment: Debian 11 Bullseye > NetBeans 12.5 > java version "1.8.0_172" > Java(TM) SE Runtime Environment (build 1.8.0_172-b11) > Java HotSpot(TM) 64-Bit Server VM (build 25.172-b11, mixed mode) > git version 2.30.2 > ssh 1:8.4p1-5 >Reporter: Ronald Feicht >Priority: Major > > When I try to "git fetch" from our git server I receive the following error: > "Incorrect credentials for repository at > ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary" even though the > user name and password are correct. > When I uncheck "Save Password" (edit: and provide the correct password) the > git fetch completes without error. > When I use Netbeans 12.4 the git fetch also works with and without "Save > Password". > tail ~/.netbeans/12.5/var/log/messages.log : > INFO [org.netbeans.modules.git.ui.repository.remote.SelectUriStep]: Auth > failed when accessing > ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary > com.jcraft.jsch.JSchException: Auth fail > at com.jcraft.jsch.Session.connect(Session.java:519) > at > org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:112) > Caused: org.eclipse.jgit.errors.TransportException: > ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary: Auth fail > at > org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:158) > at > org.netbeans.libs.git.jgit.JGitSshSessionFactory.getSession(JGitSshSessionFactory.java:100) > at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:107) > at > org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.(TransportGitSsh.java:247) > at > org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:137) > at > org.netbeans.libs.git.jgit.commands.ListRemoteObjectsCommand.runTransportCommand(ListRemoteObjectsCommand.java:51) > Caused: org.netbeans.libs.git.GitException$AuthorizationException: > ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary: Auth fail > 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.security.AccessController.doPrivileged(Native Method) > 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:138) > 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 >
[jira] [Commented] (NETBEANS-6067) git over ssh: "Incorrect credentials for repository"
[ https://issues.apache.org/jira/browse/NETBEANS-6067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17476443#comment-17476443 ] Edward commented on NETBEANS-6067: -- My computer crashed and I lost my notes about this issue. However the cause is that the jcraft JSCH library is old. Google already moved away from it and Eclipse is in the process of replacing it. A quick alternative for Netbeans is to use a fork of JSch-01.55 here [https://github.com/mwiede/jsch |https://github.com/mwiede/jsch]that is actually updated allowing modern encryption algorithms. *References:* Matez Blog the future of jsch without ssh-rsa [https://www.matez.de/index.php/2020/06/22/the-future-of-jsch-without-ssh-rsa] Bug 520927: moving away from JSch [https://www.eclipse.org/lists/jgit-dev/msg03696.html] Gerrit 3.4.0 Disables JCraft JSch client library by default [https://www.gerritcodereview.com/3.4.html] > git over ssh: "Incorrect credentials for repository" > > > Key: NETBEANS-6067 > URL: https://issues.apache.org/jira/browse/NETBEANS-6067 > Project: NetBeans > Issue Type: Bug > Components: versioncontrol - Git >Affects Versions: 12.5, 12.6 > Environment: Debian 11 Bullseye > NetBeans 12.5 > java version "1.8.0_172" > Java(TM) SE Runtime Environment (build 1.8.0_172-b11) > Java HotSpot(TM) 64-Bit Server VM (build 25.172-b11, mixed mode) > git version 2.30.2 > ssh 1:8.4p1-5 >Reporter: Ronald Feicht >Priority: Major > > When I try to "git fetch" from our git server I receive the following error: > "Incorrect credentials for repository at > ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary" even though the > user name and password are correct. > When I uncheck "Save Password" (edit: and provide the correct password) the > git fetch completes without error. > When I use Netbeans 12.4 the git fetch also works with and without "Save > Password". > tail ~/.netbeans/12.5/var/log/messages.log : > INFO [org.netbeans.modules.git.ui.repository.remote.SelectUriStep]: Auth > failed when accessing > ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary > com.jcraft.jsch.JSchException: Auth fail > at com.jcraft.jsch.Session.connect(Session.java:519) > at > org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:112) > Caused: org.eclipse.jgit.errors.TransportException: > ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary: Auth fail > at > org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:158) > at > org.netbeans.libs.git.jgit.JGitSshSessionFactory.getSession(JGitSshSessionFactory.java:100) > at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:107) > at > org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.(TransportGitSsh.java:247) > at > org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:137) > at > org.netbeans.libs.git.jgit.commands.ListRemoteObjectsCommand.runTransportCommand(ListRemoteObjectsCommand.java:51) > Caused: org.netbeans.libs.git.GitException$AuthorizationException: > ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary: Auth fail > 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.security.AccessController.doPrivileged(Native Method) > 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:138) > 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 >
[jira] [Commented] (NETBEANS-6067) git over ssh: "Incorrect credentials for repository"
[ https://issues.apache.org/jira/browse/NETBEANS-6067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17454995#comment-17454995 ] Ronald Feicht commented on NETBEANS-6067: - The issue is still there with Netbeans version 12.6. > git over ssh: "Incorrect credentials for repository" > > > Key: NETBEANS-6067 > URL: https://issues.apache.org/jira/browse/NETBEANS-6067 > Project: NetBeans > Issue Type: Bug > Components: versioncontrol - Git >Affects Versions: 12.5 > Environment: Debian 11 Bullseye > NetBeans 12.5 > java version "1.8.0_172" > Java(TM) SE Runtime Environment (build 1.8.0_172-b11) > Java HotSpot(TM) 64-Bit Server VM (build 25.172-b11, mixed mode) > git version 2.30.2 > ssh 1:8.4p1-5 >Reporter: Ronald Feicht >Priority: Major > > When I try to "git fetch" from our git server I receive the following error: > "Incorrect credentials for repository at > ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary" even though the > user name and password are correct. > When I uncheck "Save Password" (edit: and provide the correct password) the > git fetch completes without error. > When I use Netbeans 12.4 the git fetch also works with and without "Save > Password". > tail ~/.netbeans/12.5/var/log/messages.log : > INFO [org.netbeans.modules.git.ui.repository.remote.SelectUriStep]: Auth > failed when accessing > ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary > com.jcraft.jsch.JSchException: Auth fail > at com.jcraft.jsch.Session.connect(Session.java:519) > at > org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:112) > Caused: org.eclipse.jgit.errors.TransportException: > ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary: Auth fail > at > org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:158) > at > org.netbeans.libs.git.jgit.JGitSshSessionFactory.getSession(JGitSshSessionFactory.java:100) > at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:107) > at > org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.(TransportGitSsh.java:247) > at > org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:137) > at > org.netbeans.libs.git.jgit.commands.ListRemoteObjectsCommand.runTransportCommand(ListRemoteObjectsCommand.java:51) > Caused: org.netbeans.libs.git.GitException$AuthorizationException: > ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary: Auth fail > 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.security.AccessController.doPrivileged(Native Method) > 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:138) > 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
[jira] [Commented] (NETBEANS-6067) git over ssh: "Incorrect credentials for repository"
[ https://issues.apache.org/jira/browse/NETBEANS-6067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17452778#comment-17452778 ] Ronald Feicht commented on NETBEANS-6067: - The issue also occurs with java.vendor = Eclipse Foundation java.vendor.url = https://adoptium.net/ java.vendor.url.bug = https://github.com/adoptium/adoptium-support/issues java.vendor.version = Temurin-11.0.12+7 java.version = 11.0.12 java.version.date = 2021-07-20 java.vm.compressedOopsMode = Zero based java.vm.info = mixed mode java.vm.name = OpenJDK 64-Bit Server VM > git over ssh: "Incorrect credentials for repository" > > > Key: NETBEANS-6067 > URL: https://issues.apache.org/jira/browse/NETBEANS-6067 > Project: NetBeans > Issue Type: Bug > Components: versioncontrol - Git >Affects Versions: 12.5 > Environment: Debian 11 Bullseye > NetBeans 12.5 > java version "1.8.0_172" > Java(TM) SE Runtime Environment (build 1.8.0_172-b11) > Java HotSpot(TM) 64-Bit Server VM (build 25.172-b11, mixed mode) > git version 2.30.2 > ssh 1:8.4p1-5 >Reporter: Ronald Feicht >Priority: Major > > When I try to "git fetch" from our git server I receive the following error: > "Incorrect credentials for repository at > ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary" even though the > user name and password are correct. > When I uncheck "Save Password" the git fetch completes without error. > When I use Netbeans 12.4 the git fetch also works with and without "Save > Password". > tail ~/.netbeans/12.5/var/log/messages.log : > INFO [org.netbeans.modules.git.ui.repository.remote.SelectUriStep]: Auth > failed when accessing > ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary > com.jcraft.jsch.JSchException: Auth fail > at com.jcraft.jsch.Session.connect(Session.java:519) > at > org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:112) > Caused: org.eclipse.jgit.errors.TransportException: > ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary: Auth fail > at > org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:158) > at > org.netbeans.libs.git.jgit.JGitSshSessionFactory.getSession(JGitSshSessionFactory.java:100) > at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:107) > at > org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.(TransportGitSsh.java:247) > at > org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:137) > at > org.netbeans.libs.git.jgit.commands.ListRemoteObjectsCommand.runTransportCommand(ListRemoteObjectsCommand.java:51) > Caused: org.netbeans.libs.git.GitException$AuthorizationException: > ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary: Auth fail > 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.security.AccessController.doPrivileged(Native Method) > 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:138) > 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 >