Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-6067

git over ssh: "Incorrect credentials for repository"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 12.5, 12.6
    • NB14
    • versioncontrol - Git

    Description

      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.<init>(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 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)
      WARNING [org.netbeans.TopSecurityManager]: use of system property netbeans.user has been obsoleted in favor of InstalledFileLocator/Places at org.netbeans.modules.websvc.saas.model.SaasServicesModel.<clinit>(SaasServicesModel.java:46)
      INFO [org.netbeans.core.netigso.Netigso]: bundle org.eclipse.osgi@3.9.1.v20140110-1610 256
      INFO [org.netbeans.core.netigso.Netigso]: bundle org.eclipse.osgi@3.9.1.v20140110-1610 stopped
      INFO [null]: Last record repeated again.

      Attachments

        Issue Links

          Activity

            People

              matthiasblaesing Matthias Bläsing
              scsynergy Ronald Feicht
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h 10m
                  3h 10m