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

Publish Over SSH can't connect when PasswordAuthentication is set to "NO"

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Incomplete
    • None
    • Jenkins 2.150.2 running on Redhat Linux 6.9
      Publish Over SSH plugin version 1.19.1
      Target servers are Linux as well.

    Description

      Our security office is implementing Multi-factor authentication (MFA).  The are strictly enforcing the PasswordAuthentication parameter to a value of "no" in the sshd_config file in every server. 

      The Publish_Over_SSH plugin connection fails with the message "Auth Cancel", which means it can't connect to the server to validate the credentials.  This is different than "Authorization Failed", which means there is a credential issue.  

      This renders our ability to send files to target servers using this plugin. As a result, we will have to set up public keys on all our build agents and target servers (of which there are over 200 and growing) and write explicit SSH commands to transfer the files.

      The SSH Plugin is unaffected by this change. However, that plugin does not transfer files. Is it possible to look at the connection methodology of the SSH Plugin and apply this to the Publish Over SSH plugin so it can still connect regardless of the PasswordAuthentication setting to "no"?

      Attachments

        Activity

          Closing ticket, please use the corresponding Github Issue as linked above.

          gmcdonald Gavin McDonald added a comment - Closing ticket, please use the corresponding Github Issue as linked above.

          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/92
          And here is the link to a search for related issues: https://github.com/jenkinsci/publish-over-ssh-plugin/issues?q=%22JENKINS-57310%22

          (Note: this is an automated bulk comment)

          gmcdonald 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/92 And here is the link to a search for related issues: https://github.com/jenkinsci/publish-over-ssh-plugin/issues?q=%22JENKINS-57310%22 (Note: this is an automated bulk comment)

          People

            Unassigned Unassigned
            x102785 Jed Jacobs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: