{"action":"created","issue":{"url":"https://api.github.com/repos/jbox-web/redmine_git_hosting/issues/569","labels_url":"https://api.github.com/repos/jbox-web/redmine_git_hosting/issues/569/labels{/name}","comments_url":"https://api.github.com/repos/jbox-web/redmine_git_hosting/issues/569/comments","events_url":"https://api.github.com/repos/jbox-web/redmine_git_hosting/issues/569/events","html_url":"https://github.com/jbox-web/redmine_git_hosting/issues/569","id":130176179,"number":569,"title":"Connection refused when sshd doesn't listen on default port","user":{"login":"alchris","id":6277317,"avatar_url":"https://avatars.githubusercontent.com/u/6277317?v=3","gravatar_id":"","url":"https://api.github.com/users/alchris","html_url":"https://github.com/alchris","followers_url":"https://api.github.com/users/alchris/followers","following_url":"https://api.github.com/users/alchris/following{/other_user}","gists_url":"https://api.github.com/users/alchris/gists{/gist_id}","starred_url":"https://api.github.com/users/alchris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alchris/subscriptions","organizations_url":"https://api.github.com/users/alchris/orgs","repos_url":"https://api.github.com/users/alchris/repos","events_url":"https://api.github.com/users/alchris/events{/privacy}","received_events_url":"https://api.github.com/users/alchris/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-31T20:12:37Z","updated_at":"2016-01-31T20:44:21Z","closed_at":null,"body":"Hi,\r\n\r\nour ssh server doesn't listen on the default port 22, which results in the following error:\r\n\r\n```\r\n$ RAILS_ENV=production rake --trace redmine_git_hosting:update_repositories\r\n\r\n* Performing manual update_repositories operation from command line :\r\nrake aborted!\r\nRugged::OSError: Failed to connect to localhost: Connection refused\r\n/home/user/.gem/ruby/2.1.0/bundler/gems/gitolite-rugged-551741d1df06/lib/gitolite/gitolite_admin.rb:210:in `clone_at'\r\n/home/user/.gem/ruby/2.1.0/bundler/gems/gitolite-rugged-551741d1df06/lib/gitolite/gitolite_admin.rb:210:in `clone'\r\n/home/user/.gem/ruby/2.1.0/bundler/gems/gitolite-rugged-551741d1df06/lib/gitolite/gitolite_admin.rb:317:in `set_repo'\r\n/home/user/.gem/ruby/2.1.0/bundler/gems/gitolite-rugged-551741d1df06/lib/gitolite/gitolite_admin.rb:64:in `initialize'\r\n/home/user/redmine/plugins/redmine_git_hosting/lib/redmine_git_hosting/gitolite_wrapper.rb:65:in `new'\r\n/home/user/redmine/plugins/redmine_git_hosting/lib/redmine_git_hosting/gitolite_wrapper.rb:65:in `gitolite_admin'\r\n/home/user/redmine/plugins/redmine_git_hosting/lib/redmine_git_hosting/gitolite_wrapper.rb:45:in `execute_action'\r\n/home/user/redmine/plugins/redmine_git_hosting/lib/redmine_git_hosting/gitolite_wrapper.rb:24:in `resync_gitolite'\r\n/home/user/redmine/plugins/redmine_git_hosting/lib/redmine_git_hosting/gitolite_accessor.rb:145:in `resync_gitolite'\r\n/home/user/redmine/plugins/redmine_git_hosting/lib/redmine_git_hosting/gitolite_accessor.rb:77:in `update_projects'\r\n/home/user/redmine/plugins/redmine_git_hosting/lib/tasks/redmine_git_hosting.rake:23:in `block (3 levels) in <top (required)>'\r\n/home/user/redmine/plugins/redmine_git_hosting/lib/redmine_git_hosting/console_logger.rb:7:in `title'\r\n/home/user/redmine/plugins/redmine_git_hosting/lib/tasks/redmine_git_hosting.rake:22:in `block (2 levels) in <top (required)>'\r\n/home/user/.gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:240:in `call'\r\n/home/user/.gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:240:in `block in execute'\r\n/home/user/.gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:235:in `each'\r\n/home/user/.gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:235:in `execute'\r\n/home/user/.gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:179:in `block in invoke_with_call_chain'\r\n/usr/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'\r\n/home/user/.gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:172:in `invoke_with_call_chain'\r\n/home/user/.gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:165:in `invoke'\r\n/home/user/.gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:150:in `invoke_task'\r\n/home/user/.gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `block (2 levels) in top_level'\r\n/home/user/.gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `each'\r\n/home/user/.gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `block in top_level'\r\n/home/user/.gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:115:in `run_with_threads'\r\n/home/user/.gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:100:in `top_level'\r\n/home/user/.gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:78:in `block in run'\r\n/home/user/.gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:176:in `standard_exception_handling'\r\n/home/user/.gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:75:in `run'\r\n/home/user/.gem/ruby/1.9.1/gems/rake-10.1.1/bin/rake:33:in `<main>'\r\nTasks: TOP => redmine_git_hosting:update_repositories\r\n```\r\n\r\nIt works when I change the config of the sshd so that it runs on port 22 .\r\n\r\nThe :gitolite_server_port variable is set to the port on which the sshd listens. \r\n\r\n```\r\nRedmine Git Hosting 1.2\r\nGitolite3 3.6.1-2 (Debian)\r\n\r\nEnvironment:\r\n  Redmine version                3.2.0.stable\r\n  Ruby version                      2.1.5-p273 (2014-11-13) [x86_64-linux-gnu]\r\n  Rails version                      4.2.5\r\n  Environment                      production\r\n  Database adapter              Mysql2\r\nSCM:\r\n  Subversion                         1.8.10\r\n  Git                                      2.1.4\r\n  Filesystem                     \r\n  Xitolite                                2.1.\r\n```"},"comment":{"url":"https://api.github.com/repos/jbox-web/redmine_git_hosting/issues/comments/177605110","html_url":"https://github.com/jbox-web/redmine_git_hosting/issues/569#issuecomment-177605110","issue_url":"https://api.github.com/repos/jbox-web/redmine_git_hosting/issues/569","id":177605110,"user":{"login":"n-rodriguez","id":3433835,"avatar_url":"https://avatars.githubusercontent.com/u/3433835?v=3","gravatar_id":"","url":"https://api.github.com/users/n-rodriguez","html_url":"https://github.com/n-rodriguez","followers_url":"https://api.github.com/users/n-rodriguez/followers","following_url":"https://api.github.com/users/n-rodriguez/following{/other_user}","gists_url":"https://api.github.com/users/n-rodriguez/gists{/gist_id}","starred_url":"https://api.github.com/users/n-rodriguez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n-rodriguez/subscriptions","organizations_url":"https://api.github.com/users/n-rodriguez/orgs","repos_url":"https://api.github.com/users/n-rodriguez/repos","events_url":"https://api.github.com/users/n-rodriguez/events{/privacy}","received_events_url":"https://api.github.com/users/n-rodriguez/received_events","type":"User","site_admin":false},"created_at":"2016-01-31T20:44:21Z","updated_at":"2016-01-31T20:44:21Z","body":"This is configurable."}}