I am trying to clone a Git repo using a custom SSH command. I set the SSH command in the GIT_SSH environmental variably be running
export GIT_SSH=\"/usr/bin/s
You can supply any keyfile you wish to use with the Git command like this:
$ PKEY=~/.ssh/keyfile.pem git clone git@github.com:me/repo.git
or this:
$ git.sh -i ~/.ssh/keyfile.pem clone git@github.com:me/repo.git
I answered the same question here: https://stackoverflow.com/a/15596980
See link for details.