install.fairie/home/private_dot_ssh/private_config.tmpl
Brian Zalewski e9d515d4c8 Updates
2023-11-28 02:15:59 +00:00

27 lines
No EOL
741 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
ExitOnForwardFailure yes
ForwardAgent yes
ForwardX11 no
ForwardX11Trusted no
GSSAPIAuthentication no
PreferredAuthentications publickey
Protocol 2
ServerAliveInterval 60
ServerAliveCountMax 30
IdentitiesOnly yes
IdentityFile ~/.ssh/id_rsa
Host gitlab.com
UpdateHostKeys no
Host github.com
UpdateHostKeys no
{{ if (lookPath "fig") -}}
Match all
Include ~/.fig/ssh
{{- end -}}
{{- end -}}