
Generate RSA key for the user “git” on your Git server.
Add following lines to your ssh_config:
Host git git.example.com
User git
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
IdentitiesOnly yes
IdentityFile /etc/ssh/id_rsa_insecure
Where file id_rsa_insecure contains the private key of the user “git” on your Git server.