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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:48:29+00:00 2026-06-03T05:48:29+00:00

I am trying to set up a git repo on my test server when

  • 0

I am trying to set up a git repo on my test server when I try to push from my windows computer

git push ssh://git@server.com:/path/.git

I get the error

fatal: The remote end hung up unexpectedly

But when I ssh’d into my server and tried to do the the exact same command it worked just fine. Is this a problem with my git setup or with my windows setup

  • 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-03T05:48:31+00:00Added an answer on June 3, 2026 at 5:48 am

    The problem might be caused by a number of issues:

    • Git is installed in some weird place on the server, and the environment that “git” user gets when being logged in interactively (you do this by hand via PuTTY or whatever) differs from the environment it gets when being logged in non-interactively (the git client does this for you). This is because Unix shells read different startup files in these cases, and when git uses SSH to spawn remote git instance it still spawns the default (for the user) shell on the server.
    • You have a local problem (say, you configured Git to use plink.exe to access the server, and it asks you to accept the host’s key by entering “y” or “n” (which you can’t do).

    In any case, try these steps:

    1. Run plink.exe git@server.com "git --version" and see it’s able to run Git on the server at all. If you don’t use plink.exe use whatever binary is shipped with OpenSSH included with Git for Windows; probably it’s ssh.exe.
    2. Export GIT_TRACE=1 before running git push and see if it prints out anything hinting at what went wrong, like this:

      C:\foo>GIT_TRACE=1
      C:\foo>git push ssh://git@server.com:/path/.git
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to set up CC.net to build from my private Git repo. I
I am trying to set up a git server with bunch of repositories. I
I'm trying to set up a Windows-based web server, but do the development work
I'm trying to get a git commit email hook running using Git on Windows.
I'm trying to set up a git repository on my remote linux server such
I'm trying to set up a new Windows computer with Visual Studio 2008 to
So I'm using GIT, trying to push code to my remote server. on a
I'm trying to get up and running with git. I have set up a
I am trying to properly set up my Git repositories on a remote server
I just set myself up a Git server on Amazon, and I was trying

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.