{"action":"created","issue":{"url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH/issues/1201","repository_url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH","labels_url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH/issues/1201/labels{/name}","comments_url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH/issues/1201/comments","events_url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH/issues/1201/events","html_url":"https://github.com/PowerShell/Win32-OpenSSH/issues/1201","id":336485983,"node_id":"MDU6SXNzdWUzMzY0ODU5ODM=","number":1201,"title":"Unable to connect using Key from Windows 10 to Windows 2008 R2","user":{"login":"gayantd","id":40220815,"node_id":"MDQ6VXNlcjQwMjIwODE1","avatar_url":"https://avatars2.githubusercontent.com/u/40220815?v=4","gravatar_id":"","url":"https://api.github.com/users/gayantd","html_url":"https://github.com/gayantd","followers_url":"https://api.github.com/users/gayantd/followers","following_url":"https://api.github.com/users/gayantd/following{/other_user}","gists_url":"https://api.github.com/users/gayantd/gists{/gist_id}","starred_url":"https://api.github.com/users/gayantd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gayantd/subscriptions","organizations_url":"https://api.github.com/users/gayantd/orgs","repos_url":"https://api.github.com/users/gayantd/repos","events_url":"https://api.github.com/users/gayantd/events{/privacy}","received_events_url":"https://api.github.com/users/gayantd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-06-28T06:13:20Z","updated_at":"2018-06-29T04:15:15Z","closed_at":null,"author_association":"NONE","body":"**\"OpenSSH for Windows\" version**\r\n `((Get-Item (Get-Command sshd).Source).VersionInfo.FileVersion)`\r\nResult : Get-Item : Cannot bind argument to parameter 'Path' because it is null.\r\n \r\n**Server OperatingSystem**\r\n `Windows Server 2008 R2 Datacenter`\r\n\r\n**Client OperatingSystem**\r\nWindows 10 Enterprise\r\n\r\n**What is failing**\r\nConnection to server\r\n\r\nI got below error in server side logs :\r\n7820 2018-06-28 11:26:25.200 debug3: Failed to open file:C:\\\\Users\\\\irdtds\\\\.ssh/authorized_keys error:13\r\n7820 2018-06-28 11:26:25.200 debug1: Could not open authorized keys 'C:\\\\Users\\\\irdtds\\\\.ssh/authorized_keys': Permission denied\r\n7820 2018-06-28 11:26:25.200 debug3: mm_answer_keyallowed: publickey authentication test: ECDSA key is not allowed\r\n7820 2018-06-28 11:26:25.200 Failed publickey for irdtds from 101.xx.xx.xx port 5xxxx ssh2: ECDSA SHA256:2gH+xxxxxxxxxxxxxxxxxxxxxxxxxxxxx\r\n\r\n**Expected output**\r\nSuccessful login\r\n\r\n**Actual output**\r\nUnable to login\r\n![image](https://user-images.githubusercontent.com/40220815/42016143-8653d4de-7afe-11e8-8245-2d37a5e89602.png)\r\n![image](https://user-images.githubusercontent.com/40220815/42016304-30978530-7aff-11e8-800c-f57bced8a29d.png)\r\n"},"comment":{"url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH/issues/comments/401242634","html_url":"https://github.com/PowerShell/Win32-OpenSSH/issues/1201#issuecomment-401242634","issue_url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH/issues/1201","id":401242634,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTI0MjYzNA==","user":{"login":"gayantd","id":40220815,"node_id":"MDQ6VXNlcjQwMjIwODE1","avatar_url":"https://avatars2.githubusercontent.com/u/40220815?v=4","gravatar_id":"","url":"https://api.github.com/users/gayantd","html_url":"https://github.com/gayantd","followers_url":"https://api.github.com/users/gayantd/followers","following_url":"https://api.github.com/users/gayantd/following{/other_user}","gists_url":"https://api.github.com/users/gayantd/gists{/gist_id}","starred_url":"https://api.github.com/users/gayantd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gayantd/subscriptions","organizations_url":"https://api.github.com/users/gayantd/orgs","repos_url":"https://api.github.com/users/gayantd/repos","events_url":"https://api.github.com/users/gayantd/events{/privacy}","received_events_url":"https://api.github.com/users/gayantd/received_events","type":"User","site_admin":false},"created_at":"2018-06-29T04:15:15Z","updated_at":"2018-06-29T04:15:15Z","author_association":"NONE","body":"Hi @bingbing8 , I created authorized_keys folder instead of a file. #1180\r\nSo that issue resolved and I can login with ssh.exe.\r\nBut still sftp.exe failing with below error :\r\n\r\n![image](https://user-images.githubusercontent.com/40220815/42072940-94495c1c-7bb7-11e8-8134-318a6e294c0c.png)\r\n\r\n\r\nServer logs :  \r\n5576 2018-06-29 06:06:32.228 debug1: Executing command: \"C:\\\\Windows\\\\system32\\\\cmd.exe\" /c C:\\\\Program Files\\\\OpenSSH-Win64\\\\sftp-server.exe\r\n5576 2018-06-29 06:06:32.228 debug2: fd 4 setting TCP_NODELAY\r\n5576 2018-06-29 06:06:32.228 debug3: fd 11 is O_NONBLOCK\r\n5576 2018-06-29 06:06:32.228 debug3: fd 10 is O_NONBLOCK\r\n5576 2018-06-29 06:06:32.228 debug3: fd 13 is O_NONBLOCK\r\n5576 2018-06-29 06:06:32.228 debug3: send packet: type 99\r\n5576 2018-06-29 06:06:32.228 debug3: ReadFileEx() ERROR:109, io:0000000000418750\r\n5576 2018-06-29 06:06:32.228 debug2: channel 0: read<=0 rfd 11 len 0\r\n5576 2018-06-29 06:06:32.228 debug2: channel 0: read failed\r\n5576 2018-06-29 06:06:32.228 debug2: channel 0: close_read\r\n5576 2018-06-29 06:06:32.228 debug2: channel 0: input open -> drain\r\n5576 2018-06-29 06:06:32.228 debug2: channel 0: read 101 from efd 13\r\n5576 2018-06-29 06:06:32.228 debug3: channel 0: discard efd\r\n5576 2018-06-29 06:06:32.228 debug2: channel 0: ibuf empty\r\n5576 2018-06-29 06:06:32.228 debug2: channel 0: send eof\r\n5576 2018-06-29 06:06:32.228 debug3: send packet: type 96\r\n5576 2018-06-29 06:06:32.228 debug2: channel 0: input drain -> closed\r\n5576 2018-06-29 06:06:32.228 debug1: Received SIGCHLD.\r\n5576 2018-06-29 06:06:32.228 debug1: session_by_pid: pid 7656\r\n5576 2018-06-29 06:06:32.228 debug1: session_exit_message: session 0 channel 0 pid 7656\r\n5576 2018-06-29 06:06:32.228 debug2: channel 0: request exit-status confirm 0\r\n5576 2018-06-29 06:06:32.228 debug3: send packet: type 98\r\n5576 2018-06-29 06:06:32.228 debug1: session_exit_message: release channel 0\r\n5576 2018-06-29 06:06:32.228 debug2: channel 0: write failed\r\n5576 2018-06-29 06:06:32.228 debug2: channel 0: close_write\r\n5576 2018-06-29 06:06:32.228 debug2: channel 0: send eow\r\n5576 2018-06-29 06:06:32.228 debug2: channel 0: output open -> closed\r\n5576 2018-06-29 06:06:32.228 debug3: ReadFileEx() ERROR:109, io:0000000000456ED0\r\n5576 2018-06-29 06:06:32.228 debug3: read - no more data, io:0000000000456ED0\r\n5576 2018-06-29 06:06:32.228 debug2: channel 0: read 0 from efd 13\r\n5576 2018-06-29 06:06:32.228 debug2: channel 0: closing read-efd 13\r\n5576 2018-06-29 06:06:32.228 debug2: channel 0: send close\r\n5576 2018-06-29 06:06:32.228 debug3: send packet: type 97\r\n5576 2018-06-29 06:06:32.228 debug3: channel 0: will not send data after close\r\n5576 2018-06-29 06:06:32.228 debug2: notify_done: reading\r\n5576 2018-06-29 06:06:32.228 debug3: channel 0: will not send data after close\r\n5576 2018-06-29 06:06:32.368 debug3: channel 0: will not send data after close\r\n5576 2018-06-29 06:06:32.368 debug3: WSARecv - WSARecv() ERROR: io:000000000040CF40 10054\r\n5576 2018-06-29 06:06:32.368 debug3: recv - from CB ERROR:108, io:000000000040CF40\r\n5576 2018-06-29 06:06:32.368 Read error from remote host 101.98.84.53 port 54979: Unknown error\r\n5576 2018-06-29 06:06:32.368 debug1: do_cleanup\r\n4912 2018-06-29 06:06:32.384 debug3: mm_request_receive entering\r\n4912 2018-06-29 06:06:32.384 debug1: do_cleanup"}}
{"actor":{"display_login":"gayantd"}}