{"action":"closed","issue":{"url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH/issues/970","repository_url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH","labels_url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH/issues/970/labels{/name}","comments_url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH/issues/970/comments","events_url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH/issues/970/events","html_url":"https://github.com/PowerShell/Win32-OpenSSH/issues/970","id":277188003,"number":970,"title":"Connection Reset error when connecting to SSHD - Cannot create process (1349)","user":{"login":"leotxcosta","id":20564774,"avatar_url":"https://avatars1.githubusercontent.com/u/20564774?v=4","gravatar_id":"","url":"https://api.github.com/users/leotxcosta","html_url":"https://github.com/leotxcosta","followers_url":"https://api.github.com/users/leotxcosta/followers","following_url":"https://api.github.com/users/leotxcosta/following{/other_user}","gists_url":"https://api.github.com/users/leotxcosta/gists{/gist_id}","starred_url":"https://api.github.com/users/leotxcosta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leotxcosta/subscriptions","organizations_url":"https://api.github.com/users/leotxcosta/orgs","repos_url":"https://api.github.com/users/leotxcosta/repos","events_url":"https://api.github.com/users/leotxcosta/events{/privacy}","received_events_url":"https://api.github.com/users/leotxcosta/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-27T22:13:26Z","updated_at":"2017-11-28T17:28:08Z","closed_at":"2017-11-28T17:28:08Z","author_association":"NONE","body":"**OpenSSH for Windows\" version**\r\n0.0.22.0\r\n\r\n**Server OperatingSystem**\r\nWindows Server 2008 Standard\r\n\r\n**What is failing**\r\nI get a \"connection reset\" error when I try to connect to SSHD running as service (even in debug mode - DEBUG3) or via command line. However, If I run it via command line in debug mode (sshd -d), I can establish the connection successfully.\r\n\r\nLooking at debug logs, I found the following error:\r\n21312 19:38:49:116 debug1: Executing command: C:\\\\Program Files\\\\OpenSSH\\\\sftp-server.exe\r\n21312 19:38:49:116 fatal: ERROR. Cannot create process (1349).\\n\r\n\r\n[sshd.log](https://github.com/PowerShell/Win32-OpenSSH/files/1507757/sshd.log)\r\n\r\nI don't know if it makes sense but checking the session.c file, it looks like it may have some issue related to the code below:\r\n\r\nif (debug_flag)\r\n\t\t\tcreate_process_ret_val = CreateProcessW(NULL, exec_command_w, NULL, NULL, TRUE,\r\n\t\t\t\tDETACHED_PROCESS, NULL, pw_dir_w,\r\n\t\t\t\t&si, &pi);\r\n\t\telse /* launch as client user context */\r\n\t\t\t**create_process_ret_val = CreateProcessAsUserW(hToken, NULL, exec_command_w, NULL, NULL, TRUE,\r\n\t\t\t\tDETACHED_PROCESS , NULL, pw_dir_w,\r\n\t\t\t\t&si, &pi);**\r\n\r\n\r\nI've already tried v0.0.23, but I'm getting permission denied error when trying to connect to SSHD."}}
{"actor":{"display_login":"manojampalam"}}