-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[win32-openssh] Permissions (NT Rights) aren't set correctly for SSHD user #8
Comments
@DarwinJS could the same logic just be used for all versions of PowerShell, considering the ntrights.exe is bundled with the |
@MattHodge, Actually it's much better now - the default method works with Nano and everything else. I have logic in to allow the end user to override and use ntrights.exe IF they find a scenario where the new approach does not work. I tested 4 different .NET ways until it was apparent the local group policy hack had the broadest compatibility. See the update here: |
Good catch! Have you tested the package on your target version of Windows without the NTRights option? |
Yeah, (Windows 2012 R2 with PS4). Had the Running |
If you have time to test I have pushed a new version to choco. It's still in moderation, but you can get it by using -version 2016.05.30.20160827 ("8/27" instead of "8/7") |
Hi @DarwinJS .. unfortunately I still have the same issue. I used Still get the As soon as I do |
The bug was found - the wrong privilege was being set - whether using the new privilege setting or ntrights.exe. If you have time @MattHodge, could you try testing 2016.05.30.20160902 (still in moderation) and report back if it fixes the issue? I think the machine will have to be clean or else the permission may linger from your fixed up run. Thanks for any help you can lend.
|
Sorry that should be:
|
For me it was impossible to connect to the SSH daemon after installation with the Chocolatey script. I reproduced it on several fresh Win2012 R2 machines and couldn't get it to work.
With some exclusion it seems that the
Add-Privilige
from the included PoshPrivilege doesn't seem to work or is currently insufficient for enabling the correct right for the SSHD user. Maybe you will also have to add anEnable-Privilege
to the install script to correctly enable this permission? Or perhaps the currently added permission is insufficient.When adding this (lifted from
install-sshd.ps1
) after the Chocolatey install script, SSHD seems to work beautifully:The rest of the package seems to be working great. Thanks for that!
The text was updated successfully, but these errors were encountered: