Using custom SSH keys with Git
As a freelancer, I work for many clients, who have their source code in many different places, often self hosted. I generally create new SSH keys for each separate platform. Unfortunately, Git doesn't provide an option for what keys to use, you have to configure this in the ~/.ssh/config
file:
Host private.git.server.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/key_file_for_this