{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/WSL/issues/3434","repository_url":"https://api.github.com/repos/Microsoft/WSL","labels_url":"https://api.github.com/repos/Microsoft/WSL/issues/3434/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/WSL/issues/3434/comments","events_url":"https://api.github.com/repos/Microsoft/WSL/issues/3434/events","html_url":"https://github.com/Microsoft/WSL/issues/3434","id":347063284,"node_id":"MDU6SXNzdWUzNDcwNjMyODQ=","number":3434,"title":"SSH hangs after machine powered on sometimes.","user":{"login":"MichaelTong","id":3312753,"node_id":"MDQ6VXNlcjMzMTI3NTM=","avatar_url":"https://avatars2.githubusercontent.com/u/3312753?v=4","gravatar_id":"","url":"https://api.github.com/users/MichaelTong","html_url":"https://github.com/MichaelTong","followers_url":"https://api.github.com/users/MichaelTong/followers","following_url":"https://api.github.com/users/MichaelTong/following{/other_user}","gists_url":"https://api.github.com/users/MichaelTong/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelTong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelTong/subscriptions","organizations_url":"https://api.github.com/users/MichaelTong/orgs","repos_url":"https://api.github.com/users/MichaelTong/repos","events_url":"https://api.github.com/users/MichaelTong/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelTong/received_events","type":"User","site_admin":false},"labels":[{"id":353748836,"node_id":"MDU6TGFiZWwzNTM3NDg4MzY=","url":"https://api.github.com/repos/Microsoft/WSL/labels/bug","name":"bug","color":"ee0701","default":true},{"id":490442079,"node_id":"MDU6TGFiZWw0OTA0NDIwNzk=","url":"https://api.github.com/repos/Microsoft/WSL/labels/fixedininsiderbuilds","name":"fixedininsiderbuilds","color":"a5d5ff","default":false}],"state":"open","locked":false,"assignee":{"login":"benhillis","id":17727402,"node_id":"MDQ6VXNlcjE3NzI3NDAy","avatar_url":"https://avatars1.githubusercontent.com/u/17727402?v=4","gravatar_id":"","url":"https://api.github.com/users/benhillis","html_url":"https://github.com/benhillis","followers_url":"https://api.github.com/users/benhillis/followers","following_url":"https://api.github.com/users/benhillis/following{/other_user}","gists_url":"https://api.github.com/users/benhillis/gists{/gist_id}","starred_url":"https://api.github.com/users/benhillis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benhillis/subscriptions","organizations_url":"https://api.github.com/users/benhillis/orgs","repos_url":"https://api.github.com/users/benhillis/repos","events_url":"https://api.github.com/users/benhillis/events{/privacy}","received_events_url":"https://api.github.com/users/benhillis/received_events","type":"User","site_admin":false},"assignees":[{"login":"benhillis","id":17727402,"node_id":"MDQ6VXNlcjE3NzI3NDAy","avatar_url":"https://avatars1.githubusercontent.com/u/17727402?v=4","gravatar_id":"","url":"https://api.github.com/users/benhillis","html_url":"https://github.com/benhillis","followers_url":"https://api.github.com/users/benhillis/followers","following_url":"https://api.github.com/users/benhillis/following{/other_user}","gists_url":"https://api.github.com/users/benhillis/gists{/gist_id}","starred_url":"https://api.github.com/users/benhillis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benhillis/subscriptions","organizations_url":"https://api.github.com/users/benhillis/orgs","repos_url":"https://api.github.com/users/benhillis/repos","events_url":"https://api.github.com/users/benhillis/events{/privacy}","received_events_url":"https://api.github.com/users/benhillis/received_events","type":"User","site_admin":false}],"milestone":null,"comments":30,"created_at":"2018-08-02T15:28:59Z","updated_at":"2018-08-16T17:33:56Z","closed_at":null,"author_association":"NONE","body":"* Your Windows build number:  (Type `ver` at a Windows Command Prompt)\r\nMicrosoft Windows [Version 10.0.17728.1000]\r\n\r\n* What you're doing and what's happening:  (Copy&paste specific commands and their output, or include screen shots)\r\nPowered off my Surface Book 2, and power on. SSH on WSL(ubuntu) doesn't work. It hangs there, can't do Ctrl + C. However, ssh on windows cmd is successful. And this never happened to me in previous builds. Besides, after rebooting (instead of powering off), things went back to normal. Verbose log is as below:\r\n```\r\nOpenSSH_7.2p2 Ubuntu-4ubuntu2.4, OpenSSL 1.0.2g  1 Mar 2016\r\ndebug1: Reading configuration data /home/michaelht/.ssh/config\r\ndebug1: /home/michaelht/.ssh/config line 12: Applying options for erda\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: Connecting to HOSTNAME [HOSTIP] port 22.\r\ndebug1: Connection established.\r\ndebug1: identity file /home/michaelht/.ssh/id_rsa type 1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /home/michaelht/.ssh/id_rsa-cert type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /home/michaelht/.ssh/id_dsa type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /home/michaelht/.ssh/id_dsa-cert type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /home/michaelht/.ssh/id_ecdsa type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /home/michaelht/.ssh/id_ecdsa-cert type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /home/michaelht/.ssh/id_ed25519 type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /home/michaelht/.ssh/id_ed25519-cert type -1\r\ndebug1: Enabling compatibility mode for protocol 2.0\r\ndebug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.4\r\ndebug1: Remote protocol version 2.0, remote software version OpenSSH_7.6p1 Ubuntu-4\r\ndebug1: match: OpenSSH_7.6p1 Ubuntu-4 pat OpenSSH* compat 0x04000000\r\ndebug1: Authenticating to HOSTNAME:22 as 'michaelht'\r\ndebug1: SSH2_MSG_KEXINIT sent\r\ndebug1: SSH2_MSG_KEXINIT received\r\ndebug1: kex: algorithm: curve25519-sha256@libssh.org\r\ndebug1: kex: host key algorithm: ecdsa-sha2-nistp256\r\ndebug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none\r\ndebug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none\r\ndebug1: expecting SSH2_MSG_KEX_ECDH_REPLY\r\ndebug1: Server host key: ecdsa-sha2-nistp256 SHA256:ERZ2W+O9hyjot+mU8FUAAqzSvbgxizdF5hL6BnpdIOI\r\ndebug1: Host 'HOSTNAME' is known and matches the ECDSA host key.\r\ndebug1: Found key in /home/michaelht/.ssh/known_hosts:24\r\ndebug1: rekey after 134217728 blocks\r\ndebug1: SSH2_MSG_NEWKEYS sent\r\ndebug1: expecting SSH2_MSG_NEWKEYS\r\ndebug1: rekey after 134217728 blocks\r\ndebug1: SSH2_MSG_NEWKEYS received\r\ndebug1: SSH2_MSG_EXT_INFO received\r\ndebug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>\r\ndebug1: SSH2_MSG_SERVICE_ACCEPT received\r\ndebug1: Authentications that can continue: publickey,password\r\ndebug1: Next authentication method: publickey\r\ndebug1: Offering RSA public key: /home/michaelht/.ssh/id_rsa\r\ndebug1: Server accepts key: pkalg rsa-sha2-512 blen 535\r\ndebug1: Authentication succeeded (publickey).\r\nAuthenticated to HOSTNAME ([HOSTIP]:22).\r\ndebug1: channel 0: new [client-session]\r\ndebug1: Requesting no-more-sessions@openssh.com\r\ndebug1: Entering interactive session.\r\ndebug1: pledge: network\r\ndebug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0\r\ndebug1: Requesting authentication agent forwarding.\r\ndebug1: Sending environment.\r\ndebug1: Sending env LANG = en_US.UTF-8\r\ndebug1: Sending env LC_CTYPE = en_US.UTF-8\r\n```\r\n\r\n* What's wrong / what should be happening instead:\r\nShould connect successfully.\r\n\r\n\r\n* Strace of the failing command, if applicable:  (If `some_command` is failing, then run `strace -o some_command.strace -f some_command some_args`, and link the contents of `some_command.strace` in a [gist](https://gist.github.com/) here).\r\nhttps://gist.github.com/MichaelTong/323c0e89ab48b2d2f84a78e3b39bbec9\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/WSL/issues/comments/413625033","html_url":"https://github.com/Microsoft/WSL/issues/3434#issuecomment-413625033","issue_url":"https://api.github.com/repos/Microsoft/WSL/issues/3434","id":413625033,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzYyNTAzMw==","user":{"login":"k-y","id":2482525,"node_id":"MDQ6VXNlcjI0ODI1MjU=","avatar_url":"https://avatars1.githubusercontent.com/u/2482525?v=4","gravatar_id":"","url":"https://api.github.com/users/k-y","html_url":"https://github.com/k-y","followers_url":"https://api.github.com/users/k-y/followers","following_url":"https://api.github.com/users/k-y/following{/other_user}","gists_url":"https://api.github.com/users/k-y/gists{/gist_id}","starred_url":"https://api.github.com/users/k-y/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k-y/subscriptions","organizations_url":"https://api.github.com/users/k-y/orgs","repos_url":"https://api.github.com/users/k-y/repos","events_url":"https://api.github.com/users/k-y/events{/privacy}","received_events_url":"https://api.github.com/users/k-y/received_events","type":"User","site_admin":false},"created_at":"2018-08-16T17:33:56Z","updated_at":"2018-08-16T17:33:56Z","author_association":"NONE","body":"Hmmm, I'm on 1803, and I do see the behavior where when I wake my laptop from sleep, I can no longer SSH into remote endpoints from within WSL but using putty from Windows works."}}
{"actor":{"display_login":"k-y"}}