SSH

Openssh Windows 10 Issues

Warning: Unprotected Private Key File

As an avid user of OpenSSH on Windows after last update I’ve started seen this on my PowerShell:


Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions for 'C:\\Users\\My User/.ssh/id_rsa' are too open.

File System Security PowerShell Module

Because file and folder permissions are not easy with PowerShell I’m using the File System Security PowerShell Module. You can install from the gallery using the command: