diff --git a/private_dot_ssh/bluehost-waldenfarmshoa.pub.tmpl b/private_dot_ssh/bluehost-waldenfarmshoa.pub.tmpl new file mode 100644 index 0000000..9b26d08 --- /dev/null +++ b/private_dot_ssh/bluehost-waldenfarmshoa.pub.tmpl @@ -0,0 +1 @@ +{{- (bitwardenAttachment "bluehost-waldenfarmshoa.pub" "thewaldenfarms.com-ssh-keys") -}} diff --git a/private_dot_ssh/bluehost-waldenfarmshoa.tmpl b/private_dot_ssh/bluehost-waldenfarmshoa.tmpl new file mode 100644 index 0000000..3ee6ab2 --- /dev/null +++ b/private_dot_ssh/bluehost-waldenfarmshoa.tmpl @@ -0,0 +1 @@ +{{- (bitwardenAttachment "bluehost-waldenfarmshoa" "thewaldenfarms.com-ssh-keys") -}} diff --git a/private_dot_ssh/config.tmpl b/private_dot_ssh/config.tmpl new file mode 100644 index 0000000..5e2ba66 --- /dev/null +++ b/private_dot_ssh/config.tmpl @@ -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 diff --git a/private_dot_ssh/github.pub.tmpl b/private_dot_ssh/github.pub.tmpl new file mode 100644 index 0000000..cad3f66 --- /dev/null +++ b/private_dot_ssh/github.pub.tmpl @@ -0,0 +1 @@ +{{- (bitwardenAttachment "github.pub" "selfhosted-ssh-keys") -}} diff --git a/private_dot_ssh/hydrogen.pub.tmpl b/private_dot_ssh/hydrogen.pub.tmpl new file mode 100644 index 0000000..734fb7a --- /dev/null +++ b/private_dot_ssh/hydrogen.pub.tmpl @@ -0,0 +1 @@ +{{- (bitwardenAttachment "hydrogen.pub" "selfhosted-ssh-keys") -}} diff --git a/private_dot_ssh/lithium.pub.tmpl b/private_dot_ssh/lithium.pub.tmpl new file mode 100644 index 0000000..095bd7b --- /dev/null +++ b/private_dot_ssh/lithium.pub.tmpl @@ -0,0 +1 @@ +{{- (bitwardenAttachment "lithium.pub" "selfhosted-ssh-keys") -}} diff --git a/private_dot_ssh/private_authorized_keys.tmpl b/private_dot_ssh/private_authorized_keys.tmpl new file mode 100644 index 0000000..edc90ac --- /dev/null +++ b/private_dot_ssh/private_authorized_keys.tmpl @@ -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 -}} diff --git a/private_dot_ssh/private_github.tmpl b/private_dot_ssh/private_github.tmpl new file mode 100644 index 0000000..a9b8f8b --- /dev/null +++ b/private_dot_ssh/private_github.tmpl @@ -0,0 +1 @@ +{{- (bitwardenAttachment "github" "selfhosted-ssh-keys") -}} diff --git a/private_dot_ssh/private_hydrogen.tmpl b/private_dot_ssh/private_hydrogen.tmpl new file mode 100644 index 0000000..c9a01be --- /dev/null +++ b/private_dot_ssh/private_hydrogen.tmpl @@ -0,0 +1 @@ +{{- (bitwardenAttachment "hydrogen" "selfhosted-ssh-keys") -}} diff --git a/private_dot_ssh/private_lithium.tmpl b/private_dot_ssh/private_lithium.tmpl new file mode 100644 index 0000000..755c0f5 --- /dev/null +++ b/private_dot_ssh/private_lithium.tmpl @@ -0,0 +1 @@ +{{- (bitwardenAttachment "lithium" "selfhosted-ssh-keys") -}}