Repository: PowerShell/Win32-OpenSSH

Issue #771: OpenSSHUtils Module Not Handling Localization of User IDs for German
Created: 2017-06-18T01:56:45Z
A user reported the below error with the Chocolatey Package - but this is actually coming from the OpenSSHUtils module.
Here is the full Chocolatey verbose log (which reveals many other details about the user's target system) that contains the below error near the bottom: https://gist.githubusercontent.com/Waterdrop0815/39325828f4fc39595fce9304f1a98fda/raw/3de27c0e9700b9b9ae89a9ede94c0fa4ab1f15f4/choco-log.txt
It seems like 'NT-AUTORITÄT\SYSTEM' might be the localized version of 'NT AUTHORITY\SYSTEM'.
Perhaps the script should be changed to only use well known SIDS (e.g. on lines 2,3 and 5) and then translate to text user ids on the target systems if and when necessary.  Maybe the string "NT SERVICE" needs localization as well?
2017-06-16 18:28:57,008 5784 [INFO ] -   [*] C:\Program Files\OpenSSH-Win64\sshd_config
2017-06-16 18:28:57,462 5784 [INFO ] - 'NT AUTHORITY\SYSTEM' now owns 'C:\Program Files\OpenSSH-Win64\sshd_config'. 
2017-06-16 18:28:57,837 5784 [INFO ] - 'NT-AUTORITÄT\SYSTEM' has no more access to 'C:\Program Files\OpenSSH-Win64\sshd_config'.
2017-06-16 18:28:58,095 5784 [INFO ] - 'VORDEFINIERT\Administratoren' has no more access to 'C:\Program Files\OpenSSH-Win64\sshd_config'.
2017-06-16 18:28:58,339 5784 [INFO ] - 'VORDEFINIERT\Benutzer' has no more access to 'C:\Program Files\OpenSSH-Win64\sshd_config'.
2017-06-16 18:28:59,009 5784 [ERROR] - ERROR: Exception calling "RemoveAccessRule" with "1" argument(s): "Some or all identity references could not be translated."
2017-06-16 18:28:59,369 5784 [DEBUG] - Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyinstall.ps1' -installArguments '' -packageParameters '/SSHServerFeature SSHAgentFeature SSHServerPort:13337''] exited with '-1'.
2017-06-16 18:28:59,431 5784 [DEBUG] - Calling command ['"C:\WINDOWS\System32\shutdown.exe" /a']
2017-06-16 18:28:59,603 5784 [DEBUG] - Command ['"C:\WINDOWS\System32\shutdown.exe" /a'] exited with '1116'````

Duplicate issue #775: ssh-agent cannot be started
Created: 2017-06-19T21:16:16Z
Hi
"OpenSSH for Windows" version
0.0.16.0
Server OperatingSystem
Windows Server 2008 R2 Enterprise
Client OperatingSystem
Debian Stretch
What is failing
Starting the ssh-agent service with "Start-Service ssh-agent" does not work:
Start-Service : Der Dienst "ssh-agent (ssh-agent)" kann aufgrund des folgenden Fehlers nicht gestartet werden: Der Dienst ssh-agent kann nicht auf dem Computer . gestartet werden.
Bei Zeile:1 Zeichen:14
+ Start-Service <<<<  ssh-agent
    + CategoryInfo          : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service], ServiceCommandException
    + FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand

I've followed the installation guide, installed the server, generated keys, fixed the permissions. I've even followed the wordaround for #770, but ssh-agent cannot be started.
Thanks for your help,
Tom

Closing comment (2017-06-21T18:48:54Z): dup #771