install.fairie/home/private_dot_ssh/private_config.tmpl

54 lines
1.7 KiB
Cheetah
Raw Normal View History

2023-03-19 23:38:30 -07:00
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
IdentityAgent none
2024-05-27 20:45:14 -07:00
{{ if eq .host.hostname "automation" -}}
2024-01-29 19:59:21 -08:00
IdentityFile ~/.ssh/ssh-13147527
2024-05-27 20:45:14 -07:00
{{- else if eq .host.hostname "macbook-pro" -}}
2024-01-29 19:59:21 -08:00
IdentityFile ~/.ssh/ssh-5c-nano-laptop
2024-05-27 20:45:14 -07:00
{{- else if eq .host.hostname "reserved" -}}
2024-01-29 19:59:21 -08:00
IdentityFile ~/.ssh/ssh-5c-nano-green
2024-05-27 20:45:14 -07:00
{{- else if eq .host.hostname "workstation" -}}
2024-01-29 19:59:21 -08:00
IdentityFile ~/.ssh/ssh-5c-green
2024-05-27 20:45:14 -07:00
{{- else -}}
IdentityFile ~/.ssh/ssh-13196452
2024-01-29 19:59:21 -08:00
IdentityFile ~/.ssh/ssh-5-nano
IdentityFile ~/.ssh/ssh-5-nfc-green
IdentityFile ~/.ssh/ssh-5-nfc-red
IdentityFile ~/.ssh/ssh-5-nfc-yellow
2024-05-27 20:45:14 -07:00
{{- end -}}
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
2024-01-29 19:59:21 -08:00
IdentityFile ~/.ssh/id_rsa
2023-03-19 23:38:30 -07:00
Host github.com
UpdateHostKeys no
2024-01-29 19:59:21 -08:00
IdentityFile ~/.ssh/id_rsa
2024-05-27 20:45:14 -07:00
Host automation
User {{ .user.username }}
Hostname ssh-automation.{{ .host.domain }}
ProxyCommand /opt/homebrew/bin/cloudflared access ssh --hostname %h
2024-05-17 23:02:42 -07:00
Host macbook-pro
User {{ .user.username }}
Hostname ssh-macbook-pro.{{ .host.domain }}
ProxyCommand /opt/homebrew/bin/cloudflared access ssh --hostname %h
2024-05-27 20:45:14 -07:00
Host reserved
User {{ .user.username }}
Hostname ssh-reserved.{{ .host.domain }}
ProxyCommand /opt/homebrew/bin/cloudflared access ssh --hostname %h
Host workstation
User {{ .user.username }}
Hostname ssh-workstation.{{ .host.domain }}
ProxyCommand /opt/homebrew/bin/cloudflared access ssh --hostname %h