Forum archive
git push to origin fails, is ssh causing the problem...
Hi,
I have cloned the helloworld example, made a few commits to it and am trying but failing to push my changes. Hopefully the following info is useful.
esimons@ESIMONSLAPTI7 ~/Documents/testgit/helloworld (master) $ git push -v origin master Pushing to git://192.168.100.141/git/helloworld.git fatal: unable to connect to 192.168.100.141: 192.168.100.141[0: 192.168.100.141]: errno=No error esimons@ESIMONSLAPTI7 ~/Documents/testgit/helloworld (master) $ git remote -v origin git://192.168.100.141/git/helloworld.git (fetch) origin git://192.168.100.141/git/helloworld.git (push)
Should it report the following instead?
origin ssh://192.168.100.141/git/helloworld.git (push)
I have started ssh on my revision-control appliance and can sometimes ssh into it, but I do not get consistent results.
esimons@ESIMONSLAPTI7 ~/Documents/testgit/helloworld (master)
$ ssh ed-simons@192.168.100.141:22
ssh: connect to host 192.168.100.141:22 port 22: Bad file number
esimons@ESIMONSLAPTI7 ~/Documents/testgit/helloworld (master)
$ ping 192.168.100.141
Pinging 192.168.100.141 with 32 bytes of data:
Reply from 192.168.100.141: bytes=32 time=139ms TTL=255
Reply from 192.168.100.141: bytes=32 time=148ms TTL=255
Reply from 192.168.100.141: bytes=32 time=159ms TTL=255
Reply from 192.168.100.141: bytes=32 time=176ms TTL=255
Ping statistics for 192.168.100.141:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 139ms, Maximum = 176ms, Average = 155msI am running the appliance on VMWare Player on my laptop and also using the MINGW32 Bash shell on Windows for the same laptop. I'm doing this as a practice run before rolling out git on to a dedicated server and training other software developers on how to use git.
So far, this is the only problem I have run into.
Regards,
Ed
Hi,
Thanks for replying. I solved the problem quite a while ago now so can't quite remember the details. It might have been that I was trying to push to a repository using the git protocol. Once I started using ssh everything started workking properly.
Regards,
Ed