To clone your repository you need to access your git server. Check if you have access from server to github with this command:
There are two possibilities: deploy keys and agent forwarding.
Deploy key is a SSH key set in your repo to grant client read-only access to your repo. As the name says, its primary function is to be used in the deploy process, where only read access is needed. Anyone with access to the repository and server will have the ability to deploy the project.
Make sure your repo url use git protocol not https, which means use
In many cases, especially in the beginning of a project, SSH agent forwarding is the quickest and simplest method to use. Agent forwarding uses the same SSH keys that your local development computer uses.
By default, deployer uses agent forwarding: