{"thread":{"id":"28404","subject":"New setup, trying to clone . . .","startedAt":"2011-09-16T06:59:30Z","lastAt":"2011-09-16T08:29:07Z","messageCount":2,"participants":["Joshua Stoutenburg","Jakub Narebski"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"175638","messageId":"CAOZxsToJk45UHGAuno-r=B76+SUg5icbYvUsY5EfgcGv_UkxHg@mail.gmail.com","threadId":"28404","inReplyTo":null,"subject":"New setup, trying to clone . . .","fromName":"Joshua Stoutenburg","fromEmail":"jehoshua02@gmail.com","sentAt":"2011-09-16T06:59:30Z","receivedAt":"2011-09-16T06:59:30Z","isPatch":false,"sender":{"key":"jehoshua02@gmail.com","avatar":"https://gravatar.com/avatar/00de52ca6520d6f8a8d68c383dbfad6f76d48daef1a8fd8c90507df69f708c75?d=mp&s=160"},"body":"Hey guys,\n\nI'm following these instructions:  http://progit.org/book/ch4-4.html\n\nEverything has gone fine up until about halfway down the page, where it says:\n\n>  At this point, the others can clone it down and push changes back up just as easily:\n>  $ git clone git@gitserver:/opt/git/project.git\n\nOf course, replacing [git@gitserver:/opt/git/project.git] according to\nmy setup, and I change directory to an empty directory apart from the\noriginal project, then I try the command, I get the following output:\n\nAt this point, the others can clone it down and push changes back up\njust as easily:\n\n$ git clone gituser@192.168.1.102:/git/project.git\nCloning into project...\nConnection closed by 192.168.1.102\nfatal: The remote end hung up unexpectedly\n\nAny ideas what's going on here?\n"},{"id":"175639","messageId":"m3pqj0sxfy.fsf@localhost.localdomain","threadId":"28404","inReplyTo":"CAOZxsToJk45UHGAuno-r=B76+SUg5icbYvUsY5EfgcGv_UkxHg@mail.gmail.com","subject":"Re: New setup, trying to clone . . .","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2011-09-16T08:29:07Z","receivedAt":"2011-09-16T08:29:07Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Joshua Stoutenburg <jehoshua02@gmail.com> writes:\n\n> I'm following these instructions:  http://progit.org/book/ch4-4.html\n> \n> Everything has gone fine up until about halfway down the page, where it says:\n> \n> >  At this point, the others can clone it down and push changes back up just as easily:\n> >  $ git clone git@gitserver:/opt/git/project.git\n> \n> Of course, replacing [git@gitserver:/opt/git/project.git] according to\n> my setup, and I change directory to an empty directory apart from the\n> original project, then I try the command, I get the following output:\n> \n> At this point, the others can clone it down and push changes back up\n> just as easily:\n> \n> $ git clone gituser@192.168.1.102:/git/project.git\n> Cloning into project...\n> Connection closed by 192.168.1.102\n> fatal: The remote end hung up unexpectedly\n> \n> Any ideas what's going on here?\n\nNote that 'gituser@192.168.1.102:/git/project.git' is an SSH URL.\n\nThere are two possible issues:\n\n1. The path to repository is incorrect.\n\n   If you are on the same machine as server, you can try cloning (or\n   just 'git ls-remote') with a local path:\n\n      git clone /git/project.git\n\n   or\n\n      git clone file:///git/project.git\n\n2. The SSH setup is not correct: either SSH daemon is not started, or\n   there is no 'gituser' account, or 'gituser' account doesn't have\n   access to /git/project.git\n\n   You can check first two with\n\n      ssh gituser@192.168.1.102 echo Hello\n\nHTH\n-- \nJakub Narębski\n"}]}