# Use id_rsa_github to connect to git@github.comHostmyhostHostNamegithub.comUsergitPreferredAuthenticationspublickeyIdentityFile~/.ssh/id_rsa_github# Use default ssh key to connect to git@gitlab.comHostmyhost2HostNamegitlab.comUsergitPreferredAuthenticationspublickeyIdentityFile~/.ssh/id_rsa# Use id_rsa_myserver to connect root@12.34.56.78Hostmyhost3HostName12.34.56.78UserrootPreferedAuthenticationspublickeyIdentityFile~/.ssh/id_rsa_myserver
If the server is not in config file, the default ssh key is ~/.ssh/id_rsa