# source: https://github.com/paulirish/dotfiles/blob/master/.ssh.config.example
# archive: https://web.archive.org/web/20220313104112/https://github.com/paulirish/dotfiles/blob/master/.ssh.config.example

Host github.com
	ControlMaster auto
	ControlPersist 120

Host *
	# Always use SSH2.
	Protocol 2

	# Use a shared channel for all sessions to the same host,
	# instead of always opening a new one. This leads to much
	# quicker connection times.
	ControlMaster auto
	ControlPath ~/.ssh/control/%r@%h:%p
	ControlPersist 1800

	# also this stuff
	Compression yes
	TCPKeepAlive yes
	ServerAliveInterval 20
	ServerAliveCountMax 10
