Skip to content

Instantly share code, notes, and snippets.

@sarkrui
Created December 29, 2022 09:07
Show Gist options
  • Save sarkrui/8aa90de715896bae6882aefcfd41adc3 to your computer and use it in GitHub Desktop.
Save sarkrui/8aa90de715896bae6882aefcfd41adc3 to your computer and use it in GitHub Desktop.
SSH Config Template for Linux/Mac

SSH Config Template

Host *
     ConnectTimeout 30
     ServerAliveInterval 30
     ControlMaster auto
     ControlPersist 60s
     HashKnownHosts yes
     GSSAPIAuthentication no
     IdentitiesOnly yes
     Compression yes
	
Host github.com
     HostName github.com
     User git
     PreferredAuthentications publickey
     IdentityFile ~/.ssh/id_rsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment