Create the file ~/.ssh/config with the following content:
Host youralias
HostKeyAlias full qualified hostname
Hostname full qualified hostname
Port 22
Example
Host myserver
HostKeyAlias myserver.local
Hostname myserverl.localPort 22
Advertisements