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

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • 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.
      

            Assignee:
            Joseph Petersen
            Reporter:
            Joseph Petersen (old)
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: