Prefer public key authentication.
# Allow connection to all host.
Host *
# Allow sharing of multiple sessions over a single network connection.
# Also don't prompt for password second time.
ControlPath ~/.ssh/sock_%r@%h_%p
ControlMaster auto
# This by default.
# UserKnownHostsFile ~/.ssh/known_hosts
# Enable compression. To turn on it manually invoce ssh with -C key.
# Compression yes
# Prefer public key authentication.
PreferredAuthentications publickey,keyboard-interactive,password
PubkeyAuthentication yes