PowerShell / PowerShell/Win32-OpenSSH
subsystem executable paths with "spaces" do not work
@maertendMSFT is already working on this.
Since Mar 31, 2020.
- Dominant language
- No language data
- Stars
- 8.3k
- Forks
- 819
- PR merge metrics
- No merged PRs in 30d
Description
"OpenSSH for Windows" version
v0.0.16.0
Server OperatingSystem
Windows 7 Enterprise
Client OperatingSystem
UBuntu 16.04 / 16.10
What is failing
Execution of powershell as subsystem.
Actual output
I configured the sshd_config file as follows:
Subsystem powershell C:\Program Files\PowerShell\6.0.0.17\powershell.exe -sshs -NoLogo -NoProfile
The sshd log file states following message regarding to the execution of the subsystem:
2956 11:50:35:760 debug1: Executing command: C:\\Program Files\\OpenSSH\\C:\\Program Files\\PowerShell\\6.0.0.17\\powershell.exe -sshs -NoLogo -NoProfile
This fails and the connection crushes. So I set the path in the sshd_config relatively to the OpenSSH folder:
Subsystem powershell ..\PowerShell\6.0.0.17\powershell.exe -sshs -NoLogo -NoProfile
which fixed the issue.
Is it only me experiencing this or had any of you the same issue?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.