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 8334341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T03:18:57+00:00 2026-06-09T03:18:57+00:00

I have a server with SSH access and I want to place a Git

  • 0

I have a server with SSH access and I want to place a Git origin repo there. I just created a –bare –shared repo locally and copied it to the server per SCP. Now I wanted to clone this repo per SSH url. I tried

ssh://USERNAME@HOST/folder1/folder2/gifolder.git
ssh://USERNAME:PASSWORD@HOST/folder1/folder2/gifolder.git
ssh://USERNAME@HOST:PORT/folder1/folder2/gifolder.git
ssh://USERNAME@HOST:/folder1/folder2/gifolder.git

and some more combinations of the above. But Git always says

"fatal: The remote end hung up unexpectedly"

although I’m enabled to connect per SSH with USERNAME and PASSWORD to HOST.

Is it possible to work with git in the way I want to, or do I have to setup it completely different?

UPDATE:

I configured Git Extension to use OpenSSH instead of Putty and now OpenSSH asks me to enter the password after “clone”. When I’m entering the correct password I’m getting the following error:

bash: git-upload-pack: command not found

(OpenSSH seems to get a connection to the server, because it wants me to re-enter my password when i’m entering something else) So. Now I need to fix that new problem. First of all: I’m not enabled to install git on the server. Is it possible to make “git-upload-pack” and “git-receive-pack” available without installing git?

Thanks again

UPDATE2 – SOLUTION:

The solution was to integrate the remote repository-directory as a local directory per SSH/SFTP. I’m using http://www.expandrive.com/ for that purpose.
Thanks

  • 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-06-09T03:18:59+00:00Added an answer on June 9, 2026 at 3:18 am

    You shouldn’t need to enter a password when establishing an ssh connection:
    If your public key is published on ~/.ssh/authorized_keys, this should be enough.

    You might need a password if your private key is protected by a passphrase (in which case, see “ssh daemon asks for a password“, you could need an ssh-agent).

    Otherwise, see “Unable to Git-push master to Github” for more ssh debugging tips, including:

    • ssh -vvvT ssh://USERNAME@HOST (make sure HOME is defined, especially if you are on Windows: see “Heroku push master ssh problem“)
    • check the log of the sshd on the server (for instance in /var/log/secure, but it can vary depending on the Os)

    Openssh is a safer choice (and packaged with mysysgit), but it still requires that you define your %HOME% properly.

    Again, ssh -vvvT will help here.

    First of all: I’m not enabled to install git on the server.
    Is it possible to make “git-upload-pack” and “git-receive-pack” available without installing git?

    No, it isn’t possible.

    git must be installed, and in the path of sshd (the ssh daemon running on the server).


    The OP andineupert concludes in the comments:

    Due to the need to install git on the server (which I couldn’t) I had to integrate the remote repo-dir as a local dir per SSH/SFTP.
    Now everything’s working.

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

Sidebar

Related Questions

If I have SSH access to a shared server (running centOS) and I want
I have a remote web server that I have full access to (ssh, git,
I currently have Magento set up on a development server (remote, SSH access) and
I have git repository (powered by gitosis) on my local ubuntu server I want
When I don't have SSH access to a server, I usually download stuff over
I have full access to some folder on a remote Linux server over ssh
I have a GIT repository on bitbucket, which I want my Jenkins Server to
I have a VPS server and a client is asking for SSH access on
I have SSH access to 'public' server, which is also the gateway to company
I have a server and I have to allow remote SSH to users for

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.