Date: 2013-07-17

My SSH client configuration

Tags: ssh

This is my configuration. It fits my environment, some settings might not be right for you.

Host *
    ForwardAgent yes # I only connect to safe servers, not shared servers.
    GSSAPIAuthentication no # Because sometimes I have to deal with Windows DNS servers
    AddressFamily inet
    IdentityFile ~/.ssh/id_rsa
    SendEnv LANG LC_*
    HashKnownHosts yes # Hash FQDN in known_hosts
    GSSAPIDelegateCredentials no
    EscapeChar ~
    ServerAliveInterval 60
    ServerAliveCountMax 60
    #User root
    StrictHostKeyChecking ask

    # Check SSHFP record
    #VerifyHostKeyDNS yes

    ControlMaster auto
    ControlPath ~/.ssh/ssh_socket_%h-%p-%r

    # Since OpenSSH 5.6
    ControlPersist 5m