PowerShell / PowerShell/Win32-OpenSSH

Permission error install-sshd.ps1 in elevated mode

Open
#1,325 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
8.3k
Forks
819
PR merge metrics
No merged PRs in 30d

Description

Troubleshooting steps
https://github.com/PowerShell/Win32-OpenSSH/wiki/Troubleshooting-Steps

Terminal issue? please go through wiki
https://github.com/PowerShell/Win32-OpenSSH/wiki/TTY-PTY-support-in-Windows-OpenSSH

Please answer the following

"OpenSSH for Windows" version
((Get-Item (Get-Command sshd).Source).VersionInfo.FileVersion)
Cannot run the above code, due to the error below.
Downloaded v7.9.0.0p1-Beta : OpenSSH-Win64.zip

Server OperatingSystem
Windows 10 Pro

Client OperatingSystem
Mac OS

What is failing
https://github.com/PowerShell/Win32-OpenSSH/wiki/Install-Win32-OpenSSH

Following the guide above,
Downloaded v7.9.0.0p1-Beta : OpenSSH-Win64.zip

Running :
'powershell.exe -ExecutionPolicy Bypass -File install-sshd.ps1'

On elevated mode gives the error:
Sorry the language is in Korean - it says access denied on the given path.
(I tried changing displaying language on windows settings and also 'set-culture en-us' but it doesn't change powershell error messages despite the windows is now in english?)

screenshot 2019-01-20 at 06 17 12

screenshot 2019-01-20 at 06 18 28

Due to this error I have no sshd service.

Expected output

Actual output

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Install-Win32-OpenSSH wiki instructions and the install-sshd.ps1 command shown in the report. Reproduce the elevated-mode failure on Windows 10 using OpenSSH v7.9.0.0p1-Beta, then verify the access-denied path and that installation creates the sshd service.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.