Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6573387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:07:34+00:00 2026-05-25T15:07:34+00:00

Whenever I use the following url = ssh://user@dev.example.com:imageInfo.git in .git/config for a remote repo

  • 0

Whenever I use the following

url = ssh://user@dev.example.com:imageInfo.git

in .git/config for a remote repo I get the following error

 ssh: connect to host  port 22: Connection refused
 fatal: The remote end hung up unexpectedly

but if use the following

ssh user@dev.example.com

outside of git I connect without a problem.
Git also connects to same server with a gitosis user using

 url = gitosis@dev.example.com:imageInfo.git 

in .git/config and it has not problems.

so to sum things up in short my .git/config file looks like this

 [remote "production"]
        url = ssh://user@dev.example.com:imageInfo.git
        url = gitosis@dev.example.com:imageInfo.git

any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T15:07:34+00:00Added an answer on May 25, 2026 at 3:07 pm

    You have the format of the SSH URL wrong – you can either use the scp-style syntax, like:

    user@dev.example.com:imageInfo.git
    

    … or the true URL form, where you need a / after the host rather than a :, and an absolute path, which I can only guess at, e.g.:

    ssh://user@dev.example.com/srv/git/imageInfo.git
    

    The documentation for git’s URLs is here, but kernel.org is down at the moment, so you may want to look at the cached version here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use following PHP function: file_get_contents('http://example.com'); Whenever I do this on a certain server,
json url : http://www.nseindia.com/homepage/Indices1.json I am able to get the json output whenever i
Whenever I use the following code, the webserver (running IIS 7) refuses to send
Whenever I use a macro in Visual Studio I get an annoying tip balloon
whenever I use the following code in PHP files , it gives me the
I created a User model using Devise and whenever I use rake db:migrate I
I get the above error whenever I try and use ActionLink ? I've only
Whenever I'm disconnected from the internet, I get the following exception: org.hibernate.HibernateException: Could not
I use the following code to run ls -l ./ and get the result
Whenever I use the signal/slot editor dialog box, I have to choose from the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.