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

Ansible plugin: Work support for ssh private key which is protected by password.

    XMLWordPrintable

Details

    Description

      When use private ssh key which is protected by password, set it up in ssh credentail plugin, the Ansbile plugin run with error "[10.222.0.129] => SSH Error: Permission denied (publickey)."

      The expected behavior is ansible-playbook should run without problem

      Attachments

        Activity

          I believe I've hit this issue as well, I'm able to ssh in to the server using the password-protected private key, however I am getting "Permission denied (publickey)." when using the ansible plugin.

          mwarkentin Michael Warkentin added a comment - I believe I've hit this issue as well, I'm able to ssh in to the server using the password-protected private key, however I am getting "Permission denied (publickey)." when using the ansible plugin.

          Code changed in jenkins
          User: Jean-Christophe Sirot
          Path:
          src/main/java/org/jenkinsci/plugins/ansible/AbstractAnsibleInvocation.java
          src/main/java/org/jenkinsci/plugins/ansible/Utils.java
          http://jenkins-ci.org/commit/ansible-plugin/727083b99f631df7a097460e7f6739ea1dc6704b
          Log:
          JENKINS-30656 Add support for password protected ssh key

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jean-Christophe Sirot Path: src/main/java/org/jenkinsci/plugins/ansible/AbstractAnsibleInvocation.java src/main/java/org/jenkinsci/plugins/ansible/Utils.java http://jenkins-ci.org/commit/ansible-plugin/727083b99f631df7a097460e7f6739ea1dc6704b Log: JENKINS-30656 Add support for password protected ssh key

          Code changed in jenkins
          User: Jean-Christophe Sirot
          Path:
          src/main/java/org/jenkinsci/plugins/ansible/AbstractAnsibleInvocation.java
          http://jenkins-ci.org/commit/ansible-plugin/3ee2ffb9988c6df93474fcc9e0c78baaa352101a
          Log:
          JENKINS-30656 Add DISPLAY env variable only if it does not exist

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jean-Christophe Sirot Path: src/main/java/org/jenkinsci/plugins/ansible/AbstractAnsibleInvocation.java http://jenkins-ci.org/commit/ansible-plugin/3ee2ffb9988c6df93474fcc9e0c78baaa352101a Log: JENKINS-30656 Add DISPLAY env variable only if it does not exist

          People

            sirot Jean-Christophe Sirot
            timesking ZeHong Yin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: