Skip to content

Instantly share code, notes, and snippets.

@kenjij
Created February 18, 2022 02:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenjij/60c612253a6d5d8c8be0622915dee7a4 to your computer and use it in GitHub Desktop.
Save kenjij/60c612253a6d5d8c8be0622915dee7a4 to your computer and use it in GitHub Desktop.
User SSH config
# Save this at ~/.ssh/config
Host nickname
Hostname 192.168.0.123
User nick
Port 2222
IdentityFile ~/.ssh/id_nick
Compression yes
Host *
Compression no
# Other Host directive pattern match
# Host *
# Host 192.168.0.*
# Host 192.168.0.10*
# Host 192.168.0.* !192.168.0.111 (exclusion)
# ssh -F /dev/null user@example.com (ignore config)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment