{"action":"created","issue":{"url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH/issues/231","repository_url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH","labels_url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH/issues/231/labels{/name}","comments_url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH/issues/231/comments","events_url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH/issues/231/events","html_url":"https://github.com/PowerShell/Win32-OpenSSH/issues/231","id":157796846,"number":231,"title":"Ssh-agent crashed when querying via ssh-add -L (2016-5-15)","user":{"login":"dragon788","id":487774,"avatar_url":"https://avatars.githubusercontent.com/u/487774?v=3","gravatar_id":"","url":"https://api.github.com/users/dragon788","html_url":"https://github.com/dragon788","followers_url":"https://api.github.com/users/dragon788/followers","following_url":"https://api.github.com/users/dragon788/following{/other_user}","gists_url":"https://api.github.com/users/dragon788/gists{/gist_id}","starred_url":"https://api.github.com/users/dragon788/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dragon788/subscriptions","organizations_url":"https://api.github.com/users/dragon788/orgs","repos_url":"https://api.github.com/users/dragon788/repos","events_url":"https://api.github.com/users/dragon788/events{/privacy}","received_events_url":"https://api.github.com/users/dragon788/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-06-01T00:03:48Z","updated_at":"2016-06-01T21:57:14Z","closed_at":"2016-06-01T04:50:45Z","body":"I installed Win32-OpenSSH via chocolatey. I then opened a new regular user Powershell terminal and tried to use ssh-agent, it silently failed. I attempted to launch it to get usage with /? and -? and it crashed with a \"not responding\" error. I then opened a new Administrator Powershell terminal to start ssh-agent, it started, but as soon as I queried it with ssh-add -L it crashed.\r\n\r\nElevated session where I started the agent\r\n```\r\nPS C:\\windows\\system32> ssh-agent.exe\r\nagent_start pid:9904, dbg:1, child:0, pipe:0\r\nclient pid 19016 connected on \\\\.\\pipe\\ssh-keyagent\r\ndebug1: connection io 000000B331A03F90 #bytes:0 state:0\r\ndebug1: connection io 000000B331A03F90 #bytes:4 state:1\r\ndebug1: connection io 000000B331A03F90 #bytes:1 state:2\r\ndebug1: connection 000000B331A03F90 clean up\r\ndebug1: iocp error: 6 on 0000000000000000\r\n```\r\n\r\nNormal session where I was attempting to access the agent\r\n```\r\nPS C:\\Users\\User> ssh-agent.exe\r\nagent_start pid:18804, dbg:1, child:0, pipe:0\r\ncannot create agent root reg key, ERROR:5\r\nPS C:\\Users\\User> ssh\r\nusage: ssh [-1246AaCfGgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]\r\n           [-D [bind_address:]port] [-E log_file] [-e escape_char]\r\n           [-F configfile] [-I pkcs11] [-i identity_file]\r\n           [-L address] [-l login_name] [-m mac_spec]\r\n           [-O ctl_cmd] [-o option] [-p port]\r\n           [-Q cipher | cipher-auth | mac | kex | key]\r\n           [-R address] [-S ctl_path] [-W host:port]\r\n           [-w local_tun[:remote_tun]] [user@]hostname [command]\r\nPS C:\\Users\\User> ssh-add -L\r\nerror fetching identities for protocol 2: communication with agent failed\r\nThe agent has no identities.\r\n```\r\n\r\nIn the Administrator session after it crashed\r\n```\r\nPS C:\\windows\\system32> ssh-add -L\r\nCould not open a connection to your authentication agent.\r\n```"},"comment":{"url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH/issues/comments/223137381","html_url":"https://github.com/PowerShell/Win32-OpenSSH/issues/231#issuecomment-223137381","issue_url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH/issues/231","id":223137381,"user":{"login":"DarwinJS","id":11597190,"avatar_url":"https://avatars.githubusercontent.com/u/11597190?v=3","gravatar_id":"","url":"https://api.github.com/users/DarwinJS","html_url":"https://github.com/DarwinJS","followers_url":"https://api.github.com/users/DarwinJS/followers","following_url":"https://api.github.com/users/DarwinJS/following{/other_user}","gists_url":"https://api.github.com/users/DarwinJS/gists{/gist_id}","starred_url":"https://api.github.com/users/DarwinJS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DarwinJS/subscriptions","organizations_url":"https://api.github.com/users/DarwinJS/orgs","repos_url":"https://api.github.com/users/DarwinJS/repos","events_url":"https://api.github.com/users/DarwinJS/events{/privacy}","received_events_url":"https://api.github.com/users/DarwinJS/received_events","type":"User","site_admin":false},"created_at":"2016-06-01T21:57:14Z","updated_at":"2016-06-01T21:57:14Z","body":"I maintain the Chocolatey package, but I am not on the Win32-OpenSSH team.\r\n\r\nIf you run the chocolatey package with no parameters you get a client only install.  You'll still see the service .exes in the folder because the zip has everything in it - but they are not configured.\r\n\r\nAre you saying you'd like to use the shh-agent to cache keys for a client install then?"}}
{"actor":{"display_login":"DarwinJS"}}