amazon web services - Hosting a Git repository on an AWS Windows Server -
i'm trying host own private git setup on aws windows server instance.
here setup:
- openssh installed via cygwin
- this works. have sshed server
- git daemon installed via cygwin
- this seems work. have created , cloned repos locally using git bash
- outgoing firewall rule allowing tcp on ports 22 , 9418
- incoming firewall rule allowing tcp on ports 22 , 9418
- i'm not sure required.
as far can tell, need, except can't clone repo.
i'm using command remotely:
git clone ssh://myuser@myserver.com/git/myrepo
and output:
clone 'myrepo' fatal: not read remote repository please make sure have correct access rights , repository exists. however, exact same command works fine when run on myserver's through git bash... leads me believe firewall issue. can't seem find port needed, though.
extra details:
- my repo initialized using
git init --bare --shared - my aws instance's security group (sg) has following rules (currently debugging)
- inbound
- port, source:
all 0.0.0.0/0
- port, source:
- outbound
- port, source:
all 0.0.0.0/0
- port, source:
- inbound
does know i'm missing?
thanks.
are sure 'myuser' user has access /git/myrepo? note that's root-relative, not relative myuser's home dir.
if want path relative user's home dir, try clone url of format myuser@myserver.com:git/myrepo.
also make sure bare repo's been created in /git/myrepo - i.e. if ls /git/myrepo, see head, hooks, refs, config, etc.
Comments
Post a Comment