{"action":"created","issue":{"url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH/issues/784","repository_url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH","labels_url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH/issues/784/labels{/name}","comments_url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH/issues/784/comments","events_url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH/issues/784/events","html_url":"https://github.com/PowerShell/Win32-OpenSSH/issues/784","id":238057120,"number":784,"title":"subsystem executable paths with \"spaces\" do not work","user":{"login":"philSixZero","id":29626718,"avatar_url":"https://avatars1.githubusercontent.com/u/29626718?v=3","gravatar_id":"","url":"https://api.github.com/users/philSixZero","html_url":"https://github.com/philSixZero","followers_url":"https://api.github.com/users/philSixZero/followers","following_url":"https://api.github.com/users/philSixZero/following{/other_user}","gists_url":"https://api.github.com/users/philSixZero/gists{/gist_id}","starred_url":"https://api.github.com/users/philSixZero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philSixZero/subscriptions","organizations_url":"https://api.github.com/users/philSixZero/orgs","repos_url":"https://api.github.com/users/philSixZero/repos","events_url":"https://api.github.com/users/philSixZero/events{/privacy}","received_events_url":"https://api.github.com/users/philSixZero/received_events","type":"User","site_admin":false},"labels":[{"id":442064268,"url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH/labels/Area-Core","name":"Area-Core","color":"5319e7","default":false},{"id":257862387,"url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH/labels/Issue-Bug","name":"Issue-Bug","color":"fc2929","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-06-23T06:58:35Z","updated_at":"2017-06-29T20:02:22Z","closed_at":null,"body":"**\"OpenSSH for Windows\" version**\r\nv0.0.16.0\r\n \r\n**Server OperatingSystem**\r\nWindows 7 Enterprise\r\n\r\n**Client OperatingSystem**\r\nUBuntu 16.04 / 16.10\r\n\r\n**What is failing**\r\nExecution of powershell as subsystem.\r\n\r\n**Actual output**\r\nI configured the sshd_config file as follows:\r\n`Subsystem powershell C:\\Program Files\\PowerShell\\6.0.0.17\\powershell.exe -sshs -NoLogo -NoProfile`\r\n\r\nThe sshd log file states following message regarding to the execution of the subsystem:\r\n`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`\r\n\r\nThis fails and the connection crushes. So I set the path in the sshd_config relatively to the OpenSSH folder:\r\n`Subsystem powershell ..\\PowerShell\\6.0.0.17\\powershell.exe -sshs -NoLogo -NoProfile`\r\nwhich fixed the issue.\r\n\r\nIs it only me experiencing this or had any of you the same issue?"},"comment":{"url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH/issues/comments/312088135","html_url":"https://github.com/PowerShell/Win32-OpenSSH/issues/784#issuecomment-312088135","issue_url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH/issues/784","id":312088135,"user":{"login":"bagajjal","id":23668037,"avatar_url":"https://avatars3.githubusercontent.com/u/23668037?v=3","gravatar_id":"","url":"https://api.github.com/users/bagajjal","html_url":"https://github.com/bagajjal","followers_url":"https://api.github.com/users/bagajjal/followers","following_url":"https://api.github.com/users/bagajjal/following{/other_user}","gists_url":"https://api.github.com/users/bagajjal/gists{/gist_id}","starred_url":"https://api.github.com/users/bagajjal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bagajjal/subscriptions","organizations_url":"https://api.github.com/users/bagajjal/orgs","repos_url":"https://api.github.com/users/bagajjal/repos","events_url":"https://api.github.com/users/bagajjal/events{/privacy}","received_events_url":"https://api.github.com/users/bagajjal/received_events","type":"User","site_admin":false},"created_at":"2017-06-29T20:02:22Z","updated_at":"2017-06-29T20:02:22Z","body":"tested on the unix environment. Unix has a way to escape the spaces in the path..\r\nex - /home/Ubuntu/test\\ directory/ -> Here we escape the space in \"test directory\" using \\.\r\n\r\nWe need to find a way that suits windows."}}
{"actor":{"display_login":"bagajjal"}}