2023-03-19 23:38:30 -07:00
|
|
|
{{- 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
|
2023-11-27 18:15:59 -08:00
|
|
|
IdentityFile ~/.ssh/id_rsa
|
2023-03-19 23:38:30 -07:00
|
|
|
Host gitlab.com
|
|
|
|
UpdateHostKeys no
|
|
|
|
Host github.com
|
|
|
|
UpdateHostKeys no
|
2023-08-06 22:19:59 -07:00
|
|
|
{{ if (lookPath "fig") -}}
|
|
|
|
Match all
|
|
|
|
Include ~/.fig/ssh
|
|
|
|
{{- end -}}
|
2023-01-25 23:08:57 -08:00
|
|
|
{{- end -}}
|