Skip to content

Instantly share code, notes, and snippets.

@justerror
Last active March 10, 2022 08:41
Show Gist options
  • Save justerror/2dc121399b98e812cf2a8afb9b2edb36 to your computer and use it in GitHub Desktop.
Save justerror/2dc121399b98e812cf2a8afb9b2edb36 to your computer and use it in GitHub Desktop.
SSH config optimised for macOS
ServerAliveInterval 120
TCPKeepAlive no
Compression yes
UseKeychain yes
AddKeysToAgent yes
Host example.com
User dev
HostName 127.0.0.1
Port 2222
IdentityFile ~/.ssh/id_rsa
Host *
User root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment