{"action":"closed","issue":{"url":"https://api.github.com/repos/libgit2/rugged/issues/616","repository_url":"https://api.github.com/repos/libgit2/rugged","labels_url":"https://api.github.com/repos/libgit2/rugged/issues/616/labels{/name}","comments_url":"https://api.github.com/repos/libgit2/rugged/issues/616/comments","events_url":"https://api.github.com/repos/libgit2/rugged/issues/616/events","html_url":"https://github.com/libgit2/rugged/issues/616","id":163402017,"number":616,"title":"Please help with ssh failing to connect (Rugged::Remote.check_connection is a black box)","user":{"login":"najamelan","id":449589,"avatar_url":"https://avatars.githubusercontent.com/u/449589?v=3","gravatar_id":"","url":"https://api.github.com/users/najamelan","html_url":"https://github.com/najamelan","followers_url":"https://api.github.com/users/najamelan/followers","following_url":"https://api.github.com/users/najamelan/following{/other_user}","gists_url":"https://api.github.com/users/najamelan/gists{/gist_id}","starred_url":"https://api.github.com/users/najamelan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/najamelan/subscriptions","organizations_url":"https://api.github.com/users/najamelan/orgs","repos_url":"https://api.github.com/users/najamelan/repos","events_url":"https://api.github.com/users/najamelan/events{/privacy}","received_events_url":"https://api.github.com/users/najamelan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-01T14:01:16Z","updated_at":"2016-07-01T17:08:40Z","closed_at":"2016-07-01T17:08:40Z","body":"I'm sorry to be the nth person to ask this, but I spent all day without success...\r\n\r\nrugged version: \"0.24.0\"\r\nlibgit2              : compiled by gem on 'gem install rugged'\r\nruby version   : ruby 2.1.5p273 (2014-11-13) [i386-linux-gnu]\r\nos                   : debian-jessie in vagrant with vbox\r\n\r\nRugged::features => [:threads, :https, :ssh]\r\n\r\nI'm trying to connect to a gitolite repository on localhost through ssh. I have a valid repository set up. ssh works, I can connect to my repository url using Net::SSH in ruby with it loading configuration from ~/.ssh which just has Identityfile set for localhost. The ssh key does not require a passphrase.\r\n\r\nI specify the :publickey and :privatekey as absolute file paths. I have tried ommitting :passphrase or setting it to an empty string. I have tried everything I can think of, check_connection will always return false without any error messages, even if I feed it credentials with typos in host or public/private key sections.\r\n\r\nI have tried specifying the remote url under different forms:\r\n- gitolite@localhost:reponame\r\n- gitolite@localhost:reponame.git\r\n- ssh://gitolite@localhost:reponame.git\r\n- ssh://gitolite@localhost/reponame.git\r\n\r\nI have also tried the repository gitolite-rugged since that does what I am looking for in rugged, and so I tried with a different repository, but their software doesn't work for me either. When creating a GitoliteAdmin object, which tries to fetch, I get:\r\n`#<Rugged::SshError: authentication required but no callback set>`\r\n\r\nThey call fetch on Repository, since that forwards to Remote.fetch, I tried Remote.fetch directly, which gives:\r\n`#<Rugged::SshError: Failed to authenticate SSH session: Callback returned error>`\r\n\r\nI have tried with sshkey from agent, same problem.\r\n\r\nI have tried with the latest version from master here, same result... I would try to add more feedback in case of errors to the c code, but it's quite cryptic for me I admit...\r\n\r\nAny ideas?"}}
{"actor":{"display_login":"najamelan"}}