-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathconfig.tmpl
33 lines (27 loc) · 1.05 KB
/
config.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# -*-mode:ssh-config-*- vim:ft=sshconfig
# ~/.ssh/config
# =============================================================================
# OpenSSH client configuration.
#
# See https://www.ssh.com/ssh/config
#
# {{- /* This file supports Go's text/template language. */}}
# Skip newer or system-specific unmatched options.
IgnoreUnknown AddKeysToAgent,UseKeychain
Host *
{{ if ne .chezmoi.os "windows" -}}
# Accelerate connections by reusing existing connections to the same host.
ControlMaster auto
ControlPath ~/.ssh/controlmasters/%r@%h:%p
ControlPersist 5
{{- end }}
# Allow storing passphrases in the macOS keychain.
# See https://developer.apple.com/library/archive/technotes/tn2449/_index.html
AddKeysToAgent yes
UseKeychain yes
# Keep the connection temporarily open by sending a data every few minutes.
ServerAliveCountMax 6
ServerAliveInterval 300
# Disable client-side roaming support for security reasons.
# See https://www.upguard.com/blog/fixing-the-new-openssh-roaming-bug
UseRoaming no