Skip to content

Instantly share code, notes, and snippets.

@eckon
Created September 15, 2021 11:57
Show Gist options
  • Save eckon/350dde04ccb4390e10b8b2fd8758aceb to your computer and use it in GitHub Desktop.
Save eckon/350dde04ccb4390e10b8b2fd8758aceb to your computer and use it in GitHub Desktop.
ssh config template
AddKeysToAgent yes
Host *
ServerAliveInterval 300
ServerAliveCountMax 3
Host <name of config block>
Hostname <server name>
Port <port if not 22>
User <user if not root>
Preferredauthentications publickey
IdentityFile <path to private key>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment