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

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

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • git-client-plugin
    • None
    • git-client-3.0.0

      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.
      

            jetersen Joseph Petersen
            casz Joseph Petersen (old)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: