{"action":"created","issue":{"url":"https://api.github.com/repos/nodegit/nodegit/issues/372","labels_url":"https://api.github.com/repos/nodegit/nodegit/issues/372/labels{/name}","comments_url":"https://api.github.com/repos/nodegit/nodegit/issues/372/comments","events_url":"https://api.github.com/repos/nodegit/nodegit/issues/372/events","html_url":"https://github.com/nodegit/nodegit/issues/372","id":56039312,"number":372,"title":"Cloning SSH repos seem to fail ","user":{"login":"fatso83","id":618076,"avatar_url":"https://avatars.githubusercontent.com/u/618076?v=3","gravatar_id":"","url":"https://api.github.com/users/fatso83","html_url":"https://github.com/fatso83","followers_url":"https://api.github.com/users/fatso83/followers","following_url":"https://api.github.com/users/fatso83/following{/other_user}","gists_url":"https://api.github.com/users/fatso83/gists{/gist_id}","starred_url":"https://api.github.com/users/fatso83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fatso83/subscriptions","organizations_url":"https://api.github.com/users/fatso83/orgs","repos_url":"https://api.github.com/users/fatso83/repos","events_url":"https://api.github.com/users/fatso83/events{/privacy}","received_events_url":"https://api.github.com/users/fatso83/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-30T14:27:18Z","updated_at":"2015-01-30T23:54:36Z","closed_at":null,"body":"I had problems getting [the example](https://github.com/nodegit/nodegit/blob/master/test/tests/clone.js#L49-L58) to run in my own code, constantly getting `error authenticating: `. Checked out the project (revision 5d371ae0) and ran the tests (quit after finishing the Clone tests).\r\n\r\n```\r\n  Clone\r\n    ✓ can clone with http (4566ms)\r\n    ✓ can clone with https (4469ms)\r\n    1) can clone with ssh\r\n    ✓ can clone with ssh while manually loading a key (13553ms)\r\n    ✓ can clone with git (3616ms)\r\n^C\r\n\r\n  15 passing (32s)\r\n  1 failing\r\n\r\n  1) Clone can clone with ssh:\r\n     Error: error authenticating: \r\n```\r\n\r\nThis fails on both Ubuntu 14.10  and on OS X 10.10."},"comment":{"url":"https://api.github.com/repos/nodegit/nodegit/issues/comments/72291242","html_url":"https://github.com/nodegit/nodegit/issues/372#issuecomment-72291242","issue_url":"https://api.github.com/repos/nodegit/nodegit/issues/372","id":72291242,"user":{"login":"fatso83","id":618076,"avatar_url":"https://avatars.githubusercontent.com/u/618076?v=3","gravatar_id":"","url":"https://api.github.com/users/fatso83","html_url":"https://github.com/fatso83","followers_url":"https://api.github.com/users/fatso83/followers","following_url":"https://api.github.com/users/fatso83/following{/other_user}","gists_url":"https://api.github.com/users/fatso83/gists{/gist_id}","starred_url":"https://api.github.com/users/fatso83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fatso83/subscriptions","organizations_url":"https://api.github.com/users/fatso83/orgs","repos_url":"https://api.github.com/users/fatso83/repos","events_url":"https://api.github.com/users/fatso83/events{/privacy}","received_events_url":"https://api.github.com/users/fatso83/received_events","type":"User","site_admin":false},"created_at":"2015-01-30T23:54:36Z","updated_at":"2015-01-30T23:54:36Z","body":"@maxkorp : actually that was a good point, as I had just checked that the advertised socket was present. I thought explicitly running `ssh-agent` set up the environment variable for me:\r\n```\r\n$ ssh-agent\r\nSSH_AUTH_SOCK=/tmp/ssh-QejtRVwKAexV/agent.21239; export SSH_AUTH_SOCK;\r\nSSH_AGENT_PID=21240; export SSH_AGENT_PID;\r\necho Agent pid 21240;\r\n```\r\n\r\nTurned out I was wrong\r\n```\r\nprintenv|grep SSH_AUTH_SOCK # gave me empty on Linux, was set on OS X\r\n```\r\n\r\nAnyway, after setting the environment variable on Linux (and checking it was present by echoing it) I got the same error message as on OS X.\r\n```\r\n1) Clone can clone with ssh:\r\n     Error: error authenticating\r\n```"}}