1
0
Fork 0
mirror of https://github.com/tylernguyen/dotfiles.git synced 2025-02-05 01:03:15 -06:00
dotfiles/private_dot_ssh/config.tmpl

19 lines
690 B
Cheetah
Raw Permalink Normal View History

2024-06-05 18:03:49 -05:00
{{ if eq .chezmoi.os "darwin" }}
Host {{ onepasswordRead "op://Secrets/Gitea/Secrets/Forward SSH Domain" }}
ProxyCommand /usr/local/bin/cloudflared access ssh --hostname %h
Host *
IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"
{{ end }}
{{ if eq .chezmoi.os "linux" }}
Host *
IdentityAgent ~/.1password/agent.sock
{{ end }}
Host {{ onepasswordRead "op://Secrets/Hammerhead/Secrets/Local Static Address" }}
Port {{ onepasswordRead "op://Secrets/Gitea/Secrets/Local SSH Port" }}
{{ if eq .chezmoi.os "windows" }}
Host {{ onepasswordRead "op://Secrets/Gitea/Secrets/Forward SSH Domain" }}
ProxyCommand cloudflared access ssh --hostname %h
{{ end }}