~/.ssh/config

Host serverName
    HostName 192.168.1.123
    User userOnServer
    Port 22
    IdentityFile ~/path/to/key