Host * ForwardAgent yes ServerAliveInterval 1 ServerAliveCountMax 2 Compression yes AddKeysToAgent yes HashKnownHosts yes UserKnownHostsFile ~/.ssh/my_known_hosts ControlMaster yes ControlPath ~/.ssh/myfile-%r@%n:%p ControlPersist 10m