{"action":"opened","issue":{"url":"https://api.github.com/repos/Jumpscale/lib9/issues/180","repository_url":"https://api.github.com/repos/Jumpscale/lib9","labels_url":"https://api.github.com/repos/Jumpscale/lib9/issues/180/labels{/name}","comments_url":"https://api.github.com/repos/Jumpscale/lib9/issues/180/comments","events_url":"https://api.github.com/repos/Jumpscale/lib9/issues/180/events","html_url":"https://github.com/Jumpscale/lib9/issues/180","id":300709912,"number":180,"title":"j.clients.ssh.ssh_keys_list_from_agent() fails","user":{"login":"yveskerwyn","id":13795109,"avatar_url":"https://avatars1.githubusercontent.com/u/13795109?v=4","gravatar_id":"","url":"https://api.github.com/users/yveskerwyn","html_url":"https://github.com/yveskerwyn","followers_url":"https://api.github.com/users/yveskerwyn/followers","following_url":"https://api.github.com/users/yveskerwyn/following{/other_user}","gists_url":"https://api.github.com/users/yveskerwyn/gists{/gist_id}","starred_url":"https://api.github.com/users/yveskerwyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yveskerwyn/subscriptions","organizations_url":"https://api.github.com/users/yveskerwyn/orgs","repos_url":"https://api.github.com/users/yveskerwyn/repos","events_url":"https://api.github.com/users/yveskerwyn/events{/privacy}","received_events_url":"https://api.github.com/users/yveskerwyn/received_events","type":"User","site_admin":false},"labels":[{"id":582926084,"url":"https://api.github.com/repos/Jumpscale/lib9/labels/type_bug","name":"type_bug","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-27T16:52:12Z","updated_at":"2018-02-27T16:52:12Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"#### Installation information\r\n\r\n- jumpscale version: 9.2.1\r\n- operating system: Ubuntu 16.04 (Docker container)\r\n\r\n\r\n#### Detailed description\r\n\r\nIn a Docker container for AYS 9.2.1, created using the steps as outlined in https://github.com/Jumpscale/prefab9/issues/174, I get a RuntimeError when trying to list all ssh keys using `j.clients.ssh.ssh_keys_list_from_agent()`\r\n\r\n#### Steps to reproduce\r\n\r\n```python\r\nj.clients.ssh.ssh_keys_list_from_agent()\r\n```\r\n\r\nOr:\r\n```python\r\nj.clients.ssh.start_ssh_agent()\r\nj.clients.ssh.ssh_keys_list_from_agent()\r\n```\r\n\r\n#### Relevant stacktraces\r\n\r\n```python\r\nIn [1]: j.clients.ssh.ssh_keys_list_from_agent()\r\nexec:ps aux|grep ssh-agent\r\nexec:ssh-add -L\r\n\r\nRuntimeErrorTraceback (most recent call last)\r\n/usr/local/bin/js9 in <module>()\r\n----> 1 j.clients.ssh.ssh_keys_list_from_agent()\r\n\r\n/opt/code/github/jumpscale/core9/JumpScale9/clients/ssh/SSHClientFactory.py in ssh_keys_list_from_agent(self, key_included)\r\n    286             if return_code == 1 and out.find(\"The agent has no identities\") != -1:\r\n    287                 return []\r\n--> 288             raise RuntimeError(\"error during listing of keys :%s\" % err)\r\n    289         keys = [line.split()\r\n    290                 for line in out.splitlines() if len(line.split()) == 3]\r\n\r\nRuntimeError: error during listing of keys :Error connecting to agent: Connection refused\r\n```\r\n"}}
{"actor":{"display_login":"yveskerwyn"}}