Configure git to use a specific SSH key for a repository permanentlyConfigure a SSH key to use with Git. I think that other way is to use ~/.ssh/config and specify different hosts. The hosts have a different name from the Hostname, and have specific ssh options.