{"action":"closed","issue":{"url":"https://api.github.com/repos/dlech/SshAgentLib/issues/4","repository_url":"https://api.github.com/repos/dlech/SshAgentLib","labels_url":"https://api.github.com/repos/dlech/SshAgentLib/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/dlech/SshAgentLib/issues/4/comments","events_url":"https://api.github.com/repos/dlech/SshAgentLib/issues/4/events","html_url":"https://github.com/dlech/SshAgentLib/issues/4","id":45504733,"number":4,"title":"SSH Agent mode not work in linux","user":{"login":"Aetf","id":1519759,"avatar_url":"https://avatars.githubusercontent.com/u/1519759?v=3","gravatar_id":"","url":"https://api.github.com/users/Aetf","html_url":"https://github.com/Aetf","followers_url":"https://api.github.com/users/Aetf/followers","following_url":"https://api.github.com/users/Aetf/following{/other_user}","gists_url":"https://api.github.com/users/Aetf/gists{/gist_id}","starred_url":"https://api.github.com/users/Aetf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aetf/subscriptions","organizations_url":"https://api.github.com/users/Aetf/orgs","repos_url":"https://api.github.com/users/Aetf/repos","events_url":"https://api.github.com/users/Aetf/events{/privacy}","received_events_url":"https://api.github.com/users/Aetf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2014-10-10T17:34:12Z","updated_at":"2016-07-29T15:27:20Z","closed_at":"2016-07-29T15:27:20Z","body":"Environment variables `SSH_AUTH_SOCK` and `SSH_AGENT_PID` must be exported to entire session, otherwise other programs using ssh won't pick KeeAgent as its ssh-agent.\r\n\r\nFor other ssh-agent implementations, this work is usually done in a rc file or some kind of init script for the session where the program runs and returns something as a script to be eval. I can't find a way to archive the same thing as KeeAgent is a plugin but not a standalone program.\r\n\r\nPS: I managed to rebuild these two variables from the specific path `/tmp/ssh-agent-lib-sock/` and here is the script I'm using\r\n```\r\n# Fix KeeAgent enviroment variable\r\nset _ssh_socket_dir '/tmp/ssh-agent-lib-sock'\r\nset _ssh_socket (ls --indicator-style=none \"$_ssh_socket_dir\")\r\nif test -S \"$_ssh_socket_dir/$_ssh_socket\";\r\n\tsetenv SSH_AGENT_PID (echo \"$_ssh_socket\" | sed 's/agent\\.//g')\r\n\tsetenv SSH_AUTH_SOCK \"$_ssh_socket_dir/$_ssh_socket\"\r\nend\r\n```\r\nThis is fish shell script so the syntax may be different but it's easy to adopt to bash, sh, etc."}}
{"actor":{"display_login":"dlech"}}