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

Pre-existing ssh-agent is killed by ssh-agent-plugin

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • ssh-agent-plugin
    • None

      ExecRemoteAgentFactory.isSupported() calls ssh-agent -k. If SSH_AGENT_PID is set and pointing to a running ssh-agent, the isSupported test will terminate it.

      In ExecRemoteAgentFactory.java#L59 , it could be fixed by tweaking the environment with envs()

      launcher.launch().cmds("ssh-agent", "-k").envs("SSH_AGENT_PID=")...

          [JENKINS-44308] Pre-existing ssh-agent is killed by ssh-agent-plugin

          Xavier Vergés added a comment - https://github.com/jenkinsci/ssh-agent-plugin/pull/20

          Hi stephenconnolly. I see that you are the maintainer of the SSH Agent Plugin. Can you take a look at my very simple PR at https://github.com/jenkinsci/ssh-agent-plugin/pull/20/files ?

          Thanks!

          Xavier Vergés added a comment - Hi stephenconnolly . I see that you are the maintainer of the SSH Agent Plugin. Can you take a look at my very simple PR at https://github.com/jenkinsci/ssh-agent-plugin/pull/20/files ? Thanks!

            xverges Xavier Vergés
            xverges Xavier Vergés
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: