# source: https://github.com/ahmedelgabri/dotfiles/blob/main/config/.ssh/config
# archive: https://web.archive.org/web/20220313113435/https://github.com/ahmedelgabri/dotfiles/blob/main/config/.ssh/config

 include directives can't appear after a host block
Include config.d/*

Host *
  Ciphers aes128-ctr
  PasswordAuthentication no
  ChallengeResponseAuthentication no
  HashKnownHosts yes
  AddKeysToAgent yes
  # UseKeychain yes
  Compression yes
  # SSH Multiplexing
  ControlPath ~/.ssh/%C.sock
  ControlMaster auto
  ControlPersist 10m
  # Always use SSH2
  Protocol 2
  # https://github.com/wincent/wincent/commit/7a216c1fb5fe6bba934fe5c260399d460e9ef16e
  # GlobalKnownHostsFile /dev/null
  # UpdateHostKeys no
  # UserKnownHostsFile /dev/null
  # StrictHostKeyChecking no

Host github
  HostName git@github.com
  forwardAgent yes
