Skip to content

Win32-OpenSSH - How to setup the AuthorizedKeys in the Windows User. #655

@MaximoTrinidad

Description

@MaximoTrinidad

Please answer the following

"OpenSSH for Windows" version
0.0.11.0

OS details
Windows 10 Pro

What is failing
No AuthorizationKeys found! When executing script in Breaking Change note;
$authorizedKeyPath = "C:\Users\mtrinidad.ssh\authorized_keys"
$acl = get-acl $authorizedKeyPath
$ar = New-Object System.Security.AccessControl.FileSystemAccessRule("NT Service\sshd", "Read", "Allow")
$acl.SetAccessRule($ar)
Set-Acl $authorizedKeyPath $acl

brkchge_2017-04-07_12-29-03

Expected output
No errors!

Actual output
PS C:\Program Files\PowerShell\6.0.0-alpha.18> $acl = get-acl $authorizedKeyPath
get-acl : Cannot find path 'C:\Users\mtrinidad.ssh\authorized_keys' because it does not exist.

brkchge_2_2017-04-07_12-29-03

Additional Notes
Can't find any documentation on how to create the "authorized_keys".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions