I'm trying to host my own private Git setup on an AWS Windows Server instance.
Here is my setup:
As far as I can tell, this is all I need, except that I can't clone the repo.
I'm using this command remotely:
git clone ssh://[email protected]/git/myRepo
And I get this output:
Clone into 'myRepo'
fatal: Could not read from the remote repository
Please make sure you have the correct access rights
and the repository exists.
However, the exact same command works fine when I run it on myServer's through Git bash... which leads me to believe this is a firewall issue. I can't seem to find which port is needed, though.
Extra details:
git init --bare --sharedALL 0.0.0.0/0ALL 0.0.0.0/0Does anyone know what I'm missing?
Thanks.
Are you sure that the 'myUser' user has access to /git/myRepo? Note that that's root-relative, not relative to myUser's home dir.
If you want the path to be relative to the user's home dir, try a clone url of the format [email protected]:git/myRepo.
Also make sure that a bare repo's been created in /git/myRepo - i.e. if you ls /git/myRepo, you see HEAD, hooks, refs, config, etc.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With