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

Failure to connect - jenkins.plugins.publish_over.BapPublisherException: Failed to add SSH key. Message [invalid privatekey: TheKey]

      When configuring system in Jenkins (Jenkins --> Manage Jenkins --> Configure System) I locate the 'Publish over SSH' section and click 'Add'. I enter a 'Name', 'Hostname', 'Username', and 'Remote Directory'. I then click on the 'Use password authentication, or use a different key' checkbox. I enter the appropriate 'Path to key' to a known good ppk for an ssh key for connecting to a Linux server. When I click on Test Configuration I get the following error:
      Failed to connect or change directory
      jenkins.plugins.publish_over.BapPublisherException: Failed to add SSH key. Message [invalid privatekey: TheKey]

          [JENKINS-27703] Failure to connect - jenkins.plugins.publish_over.BapPublisherException: Failed to add SSH key. Message [invalid privatekey: TheKey]

          bap added a comment -

          Use putty to export the key in OpenSSH format

          bap added a comment - Use putty to export the key in OpenSSH format

          Worked perfectly. Thank you so much.

          Chadwick Bushnell added a comment - Worked perfectly. Thank you so much.

          For your information, all publish-over-ssh component type JENKINS issues related to the Publish Over SSH plugin have been transferred to Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues

          Here is the direct link to this issue in Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues/162
          And here is the link to a search for related issues: https://github.com/jenkinsci/publish-over-ssh-plugin/issues?q=%22JENKINS-27703%22

          (Note: this is an automated bulk comment)

          Gavin McDonald added a comment - For your information, all publish-over-ssh component type JENKINS issues related to the Publish Over SSH plugin have been transferred to Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues Here is the direct link to this issue in Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues/162 And here is the link to a search for related issues: https://github.com/jenkinsci/publish-over-ssh-plugin/issues?q=%22JENKINS-27703%22 (Note: this is an automated bulk comment)

            bap bap
            cbushnel Chadwick Bushnell
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: