I'm working on a basic project under an aws network. The project use a tipical vpn with a public subnet with an elb that forward traffic to a private subnet where the code resides.
I used to work on the private subnet with a tunnel launched throught putty and then passing files with filezilla. The process works fine.
Now, I want to go a step further and start using git as version controller of my project, I set up an initial repository and a bare repository inside the private subnet.
Then in my local desktop I have to clone the bare repository and start working on the project and push changes to the remote one.
With my tunnel on, I try with:
git clone ssh://private_ip/path/to/bare/repo.git repo
but the bash say:
connect to host private_ip port 22: connection timed out please make sure you have the correct access rights
I try with a combination of access but none seems to work:
git clone ssh://user@public_ip:22/private_ip/path/to/bare/repo.git repo //permission denied (publickey) git clone ssh://user@private_ip/path/to/bare/repo.git repo //connection timed out
am I missing something? What the correct url to connect to the private subnet under a tunnel? Is there a better way to manage the vcs?