Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-40160

SSH agent errors on Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened (View Workflow)
    • Priority: Blocker
    • Resolution: Unresolved
    • Component/s: ssh-agent-plugin
    • Labels:
    • Environment:
    • Similar Issues:

      Description

      The ssh-agent starts successfully:

      [ssh-agent] Using credentials jenkins
      [ssh-agent] Looking for ssh-agent implementation...
      [ssh-agent]   Java/tomcat-native ssh-agent
      [ssh-agent] Registered BouncyCastle on the remote agent
      [ssh-agent] Started.
      

      SSH_AUTH_SOCK is now set: \\.\pipe\mina3408051806833097478apr

      When invoking SSH I see this error:

      debug1: pubkey_prepare: ssh_get_authentication_socket: Device or resource busy
      

      The ssh command then fails authentication

      Permission denied (publickey).
      

        Attachments

          Activity

          Hide
          jglick Jesse Glick added a comment -

          Try 1.14 and the native command.

          Show
          jglick Jesse Glick added a comment - Try 1.14 and the native command.
          Hide
          externl Joe George added a comment -

          I think that fixes a different issue. The issue with a Java Tomcat based SSH agent still happens.

          Show
          externl Joe George added a comment - I think that fixes a different issue. The issue with a Java Tomcat based SSH agent still happens.
          Hide
          jglick Jesse Glick added a comment -

          As of 1.14, if you have the native command available, that will be used in place of Java libraries.

          Show
          jglick Jesse Glick added a comment - As of 1.14, if you have the native command available, that will be used in place of Java libraries.
          Hide
          externl Joe George added a comment -

          Ah, I see. I haven't had a chance to test it yet but I'll consider this resolved and will reopen if it's not.

          Show
          externl Joe George added a comment - Ah, I see. I haven't had a chance to test it yet but I'll consider this resolved and will reopen if it's not.
          Hide
          jglick Jesse Glick added a comment -

          Generally we reserve Fixed status for a confirmed bug with a specific code change believed to resolve it.

          Show
          jglick Jesse Glick added a comment - Generally we reserve Fixed status for a confirmed bug with a specific code change believed to resolve it.
          Hide
          jglick Jesse Glick added a comment -

          In this case, for example, the bug could still apply if your system lacks a usable native command. But it would be treated as a much lower priority and probably never dealt with unless someone contributes a tested patch.

          Show
          jglick Jesse Glick added a comment - In this case, for example, the bug could still apply if your system lacks a usable native command. But it would be treated as a much lower priority and probably never dealt with unless someone contributes a tested patch.
          Hide
          externl Joe George added a comment -

          Ah, you didn't entirely remove the Tomcat backed agent? If so then yes this should remain open, otherwise feel free to close/resolve.

          Show
          externl Joe George added a comment - Ah, you didn't entirely remove the Tomcat backed agent? If so then yes this should remain open, otherwise feel free to close/resolve.
          Hide
          jglick Jesse Glick added a comment -

          Nope, the two existing JVM-based providers were left untouched. The native command provider was just inserted as the first priority: if the native command exists, it will be used preferentially.

          Show
          jglick Jesse Glick added a comment - Nope, the two existing JVM-based providers were left untouched. The native command provider was just inserted as the first priority: if the native command exists, it will be used preferentially.

            People

            • Assignee:
              Unassigned
              Reporter:
              externl Joe George
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: