Skip to content

Instantly share code, notes, and snippets.

@mlcollard

mlcollard/config Secret

Created February 7, 2019 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mlcollard/188c440ae0e7b63480e190a2ab97f455 to your computer and use it in GitHub Desktop.
Save mlcollard/188c440ae0e7b63480e190a2ab97f455 to your computer and use it in GitHub Desktop.
SSH configuration file
Host *
# MacOS options to use Keychain for passphrases
UseKeychain yes
# MacOS option to add key when created or first used to Keychain
AddKeysToAgent yes
# Local keys for local->s1 and local->s2, allows local->s1->s2
ForwardAgent yes
# Reuse of ssh connection
ControlMaster auto
ControlPath /Users/collard/.ssh/%r@%h:%p
ControlPersist 600
# NOTE: Useful when local username is different than server username
Host devops
HostName devops.uanet.edu
User collard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment