add ssh config templates

main
Andrew Coleman 2021-04-14 17:20:44 -04:00
parent baf4cb130b
commit 2a4417342c
10 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1 @@
{{- (bitwardenAttachment "bluehost-waldenfarmshoa.pub" "thewaldenfarms.com-ssh-keys") -}}

View File

@ -0,0 +1 @@
{{- (bitwardenAttachment "bluehost-waldenfarmshoa" "thewaldenfarms.com-ssh-keys") -}}

View File

@ -0,0 +1,40 @@
Include consolo.services.d/*.conf
Host *
ForwardAgent yes
Host penguincoder.org
Port 2223
User {{ (bitwardenFields "item" "selfhosted-ssh-keys").lithium_username.value }}
IdentityFile ~/.ssh/lithium
Host git.penguincoder.org
Port 2222
User git
IdentityFile ~/.ssh/gitea
Host lithium lithium.olympus
User {{ (bitwardenFields "item" "selfhosted-ssh-keys").lithium_username.value }}
IdentityFile ~/.ssh/lithium
Host hydrogen hydrogen.olympus
User {{ (bitwardenFields "item" "selfhosted-ssh-keys").hydrogen_username.value }}
IdentityFile ~/.ssh/hydrogen
Host unifi
HostName 192.168.1.97
User {{ (bitwardenFields "item" "selfhosted-ssh-keys").unifi_username.value }}
IdentityFile ~/.ssh/lithium
Host github.com
User git
IdentityFile ~/.ssh/github
Host jolijardin.co
User {{ (bitwardenFields "item" "jolijardin.co").username.value }}
PubKeyAuthentication no
# {{ (bitwardenFields "item" "jolijardin.co").password.value }}
Host thewaldenfarms.com
User {{ (bitwardenFields "item" "thewaldenfarms.com-ssh-keys").username.value }}
IdentityFile ~/.ssh/bluehost-waldenfarmshoa

View File

@ -0,0 +1 @@
{{- (bitwardenAttachment "github.pub" "selfhosted-ssh-keys") -}}

View File

@ -0,0 +1 @@
{{- (bitwardenAttachment "hydrogen.pub" "selfhosted-ssh-keys") -}}

View File

@ -0,0 +1 @@
{{- (bitwardenAttachment "lithium.pub" "selfhosted-ssh-keys") -}}

View File

@ -0,0 +1,5 @@
{{- if (eq .chezmoi.hostname "hydrogen") -}}
{{ (bitwardenAttachment "hydrogen.pub" "selfhosted-ssh-keys") }}
{{- else if (eq .chezmoi.hostname "lithium") -}}
{{ (bitwardenAttachment "lithium.pub" "selfhosted-ssh-keys") }}
{{- end -}}

View File

@ -0,0 +1 @@
{{- (bitwardenAttachment "github" "selfhosted-ssh-keys") -}}

View File

@ -0,0 +1 @@
{{- (bitwardenAttachment "hydrogen" "selfhosted-ssh-keys") -}}

View File

@ -0,0 +1 @@
{{- (bitwardenAttachment "lithium" "selfhosted-ssh-keys") -}}