Automaticaly setting a private SSH key for a host

Edit your ~/.ssh/config file and add something like this:

Host <name>
    IdentityFile ~/.ssh/<filename>

admin