In my company we use Stash for git repository, which is hosted in-premise datacenter. I want to clone a repository on AWS EC2 instance. I have tested the connectivity between ec2 instance and git server and I am able to ping it.
When trying to clone from Stash on an ec2 (RHEL 6) instance I receive an error:
error: The requested URL returned error: 504 while accessing [url removed]
fatal: HTTP request failed
Here is the command I am using:
git clone https://<icode repository url>
I can clone the same repository onto my laptop with no problems.