So you have a ec2 amazon server instance set up and you plan to set up git into the server.
When you use git to push and pull requests from the repository you are always required to enter your username and password for the repository. You probably would get Error: Permission denied (publickey). In case of your ec2 instance you dont have a username and password attached to your git repository so how do you push/pull the repo. The repo is not public after all.