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

set file permission on ssh key when on windows to enable OpenSSH client

    Details

    • Similar Issues:

      Description

      We would like to enable Windows agents/master to set file permissions correctly for the ssh key when they are using OpenSSH made by Microsoft.

      Using java.nio.file to set permissons is possible

      This to avoid the dreaded error message from OpenSSH:

      @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
      @         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
      @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
      Permissions for 'ssh_host_dsa_key' are too open.
      

        Attachments

          Issue Links

            Activity

            Hide
            markewaite Mark Waite added a comment -

            git client plugin 3.0 will include this fix.

            Show
            markewaite Mark Waite added a comment - git client plugin 3.0 will include this fix.

              People

              • Assignee:
                casz Joseph Petersen
                Reporter:
                casz Joseph Petersen
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: