views:

54

answers:

1

Hi, i have strange behaviour of git - push is working, but clone is not :(

alec$ git clone git://host/repo.git
Initialized empty Git repository in /Users/alec/Temp/repo/.git/
host[0: x.x.x.x]: errno=Connection refused
fatal: unable to connect a socket (Connection refused)

whats wrong?

A: 

Push is probably working over SSH (port 22) but clone works over the git port (port 9418). You (or your network admin) will have to open this port if you want to be able to clone repositories.

Ryan Bigg
You can clone over ssh if you have ssh access and read permissions on the repository.
Charles Bailey