Git clone: The remote end hung up unexpectedly!!!!


1294361190error_thumbCloning a repository on GitHub : “git clone url” will clone online repository to your hard drive so you may begin working on your modifications.  The local copy is called your local repository.Sometimes when you try to clone a repository using the command:

git clone git@github.com:thpii/rm-phoenix.git phoenix/

You get the following error:

Initialized empty Git repository in /home/innominds/phoenix/.git/
ssh: connect to host github.com port 22: Connection timed out
fatal: The remote end hung up unexpectedly

Try the following command:

ssh git@github.com

If you get the following error:

ssh: connect to host github.com port 22: Connection timed out
The port 22 on your machine needs to be enabled by your system administrator.

Advertisements

2 thoughts on “Git clone: The remote end hung up unexpectedly!!!!

  1. Thank you…your post was very informative….
    I have a basic question and was hoping if you can help me…
    Have u ever tried Jenkins CI to work with github? When I login in using service account and run the fetch to get the latest, the command prompt just waits on me…not sure what am I doing wrong here…same happens with windows command line script…
    is there a way to get this to work via Jenkins?

    Like

    1. Yes, I did work on Jenkins for build and deployment, with GitHub for one of the projects. To get the latest code from the repository you need to run git pull on the command prompt. This will fetch the latest code from the repo. After you make the code changes and push it into the branch, you need to go to the Eng-pipeline in Jenkins and trigger a new build with the branch name. This will build and deploy the code. Where are you running the fetch? Is it in the Jenkins or in the GitHub? If you are running it on the command line, what is the command that you are typing?

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s