git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: New setup, trying to clone . . .

From
Jakub Narebski <jnareb@gmail.com>
Date
Sep 16, 2011, 08:29 UTC
Message-ID
<m3pqj0sxfy.fsf@localhost.localdomain>
In-Reply-To
<CAOZxsToJk45UHGAuno-r=B76+SUg5icbYvUsY5EfgcGv_UkxHg@mail.gmail.com>
Joshua Stoutenburg <jehoshua02@gmail.com> writes:
Show 20 quoted lines
> I'm following these instructions:  http://progit.org/book/ch4-4.html
> 
> Everything has gone fine up until about halfway down the page, where it says:
> 
> >  At this point, the others can clone it down and push changes back up just as easily:
> >  $ git clone git@gitserver:/opt/git/project.git
> 
> Of course, replacing [git@gitserver:/opt/git/project.git] according to
> my setup, and I change directory to an empty directory apart from the
> original project, then I try the command, I get the following output:
> 
> At this point, the others can clone it down and push changes back up
> just as easily:
> 
> $ git clone gituser@192.168.1.102:/git/project.git
> Cloning into project...
> Connection closed by 192.168.1.102
> fatal: The remote end hung up unexpectedly
> 
> Any ideas what's going on here?
Note that 'gituser@192.168.1.102:/git/project.git' is an SSH URL.
There are two possible issues:
1. The path to repository is incorrect.
   If you are on the same machine as server, you can try cloning (or
   just 'git ls-remote') with a local path:
      git clone /git/project.git
   or
      git clone file:///git/project.git
2. The SSH setup is not correct: either SSH daemon is not started, or
   there is no 'gituser' account, or 'gituser' account doesn't have
   access to /git/project.git
   You can check first two with
      ssh gituser@192.168.1.102 echo Hello
HTH
-- 
Jakub Narębski
Previous: Joshua Stoutenburg
Message 2 of 2 in “New setup, trying to clone . . .”
  1. Joshua StoutenburgSep 16, 2011
  2. Jakub NarebskiSep 16, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.