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

Password-protected private keys are still unusable

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      It seems like the plugin always tries to find a key in the ~/.ssh/id_rsa file. If the key is encrypted, then Ansible prints the following:
      Private key file is encrypted\nTo connect as a different user, use -u <username>.'
      If the key is not in this directory then the following is printed:
      FAILED: not a valid EC private key file

      I also tried using ssh-agent plugin, but it seems like the ansible plugin does some setup that makes Ansible ignore the keys added to the agent. Encrypted keys are correctly read when Ansible is run by executing shell command via Jenkins, using the ssh-agent plugin.

        Attachments

          Activity

          tomaciazek Tomasz Maciazek created issue -
          tomaciazek Tomasz Maciazek made changes -
          Field Original Value New Value
          Priority Minor [ 4 ] Major [ 3 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 167998 ] JNJira + In-Review [ 182931 ]

            People

            Assignee:
            sirot Jean-Christophe Sirot
            Reporter:
            tomaciazek Tomasz Maciazek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: