install.fairie/home/private_dot_ssh/private_config.tmpl
Brian Zalewski 48c51c16c0 Latest
2023-03-20 02:38:30 -04:00

27 lines
No EOL
743 B
Cheetah

{{- if and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "ssh" "config")) -}}
{{ includeTemplate "ssh/config" | decrypt -}}
{{ else -}}
Host *
IgnoreUnknown AddKeysToAgent,UseKeychain
AddKeysToAgent yes
UseKeychain yes
Compression no
ControlPath ~/.ssh/master-%r@%h:%p
ControlMaster auto
ControlPersist 5
ExitOnForwardFailure yes
ForwardAgent yes
ForwardX11 no
ForwardX11Trusted no
GSSAPIAuthentication no
PreferredAuthentications publickey
Protocol 2
ServerAliveInterval 60
ServerAliveCountMax 30
IdentitiesOnly yes
Host gitlab.com
UpdateHostKeys no
Host github.com
UpdateHostKeys no
{{- end -}}