Skip to content

Instantly share code, notes, and snippets.

@guychouk
Created March 2, 2021 22:48
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 guychouk/98304d89d34955cf490052026fe6c460 to your computer and use it in GitHub Desktop.
Save guychouk/98304d89d34955cf490052026fe6c460 to your computer and use it in GitHub Desktop.
πŸ”’ A sane base config for SSH.
ForwardAgent true
# Necessary for not breaking ssh on linux
IgnoreUnknown UseKeychain
# Use Keychain on macos - ignored on linux
UseKeychain yes
Host *
# This will look for private keys under the `~/.ssh/keys`
# directory, named in the follwing format: <username>@<host>
IdentityFile ~/.ssh/keys/%r@%h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment