[JIRA] (JENKINS-53933) set file permission on ssh key when on windows to enable OpenSSH client

8 views
Skip to first unread message

josephp90@gmail.com (JIRA)

unread,
Oct 7, 2018, 12:58:03 PM10/7/18
to jenkinsc...@googlegroups.com
Joseph Petersen created an issue
 
Jenkins / Task JENKINS-53933
set file permission on ssh key when on windows to enable OpenSSH client
Issue Type: Task Task
Assignee: Mark Waite
Components: git-client-plugin
Created: 2018-10-07 16:57
Priority: Major Major
Reporter: Joseph Petersen

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.

Incoming PR

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

josephp90@gmail.com (JIRA)

unread,
Oct 7, 2018, 5:48:02 PM10/7/18
to jenkinsc...@googlegroups.com
Joseph Petersen updated an issue
Change By: Joseph Petersen
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:
{code:java}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions for 'ssh_host_dsa_key' are too open.
{code}
Incoming PR

josephp90@gmail.com (JIRA)

unread,
Oct 7, 2018, 5:49:02 PM10/7/18
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Oct 8, 2018, 8:05:01 AM10/8/18
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Dec 10, 2018, 1:09:02 PM12/10/18
to jenkinsc...@googlegroups.com
Mark Waite updated Improvement JENKINS-53933
 

git client plugin 3.0 will include this fix.

Change By: Mark Waite
Status: Open Fixed but Unreleased
Resolution: Fixed

rene.scheibe@gmail.com (JIRA)

unread,
Dec 28, 2019, 7:10:02 PM12/28/19
to jenkinsc...@googlegroups.com
Change By: René Scheibe
Status: Fixed but Unreleased Resolved
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

rene.scheibe@gmail.com (JIRA)

unread,
Dec 28, 2019, 7:10:03 PM12/28/19
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Dec 28, 2019, 8:36:05 PM12/28/19
to jenkinsc...@googlegroups.com

josephp90@gmail.com (JIRA)

unread,
Mar 7, 2020, 1:07:29 AM3/7/20
to jenkinsc...@googlegroups.com
Joseph Petersen assigned an issue to Joseph Petersen
Change By: Joseph Petersen
Assignee: Joseph Petersen (old)
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages