From 087dd41a6c2060aa5b9aa72ad1d10c95872482f4 Mon Sep 17 00:00:00 2001 From: "Collin J. Doering" Date: Thu, 9 May 2024 21:42:18 -0400 Subject: [PATCH] Add and use new personal ecc ssh key --- .../rekahsoft/guix-config/proxmox-vm-lvm-minimal.scm | 11 ++++++++--- .pubkeys/collin-ecc.pub | 1 + .pubkeys/{collin.pub => collin-rsa.pub} | 0 3 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 .pubkeys/collin-ecc.pub rename .pubkeys/{collin.pub => collin-rsa.pub} (100%) diff --git a/.guix/rekahsoft/guix-config/proxmox-vm-lvm-minimal.scm b/.guix/rekahsoft/guix-config/proxmox-vm-lvm-minimal.scm index 902a127..bfc8f35 100644 --- a/.guix/rekahsoft/guix-config/proxmox-vm-lvm-minimal.scm +++ b/.guix/rekahsoft/guix-config/proxmox-vm-lvm-minimal.scm @@ -20,6 +20,11 @@ (define %automation-user "auto") (define %guix-key (local-file "../../../.pubkeys/guix-coordinator-key.pub")) +;; Keys used for ssh access +(define %deploy-key (local-file "../../../.pubkeys/deploy-key.pub")) +(define %collin-ecc-key (local-file "../../../.pubkeys/collin-ecc.pub")) +(define %collin-rsa-key (local-file "../../../.pubkeys/collin-rsa.pub")) + (define syslog-configuration (plain-file "syslog.conf" " @@ -83,9 +88,9 @@ mail.* -/var/log/maillog (openssh-configuration (password-authentication? #f) (authorized-keys - `(("auto" ,(local-file "../../../.pubkeys/deploy-key.pub")) - ("collin" ,(local-file "../../../.pubkeys/collin.pub")) - ("root" ,(local-file "../../../.pubkeys/collin.pub")))))) + `(("auto" ,%deploy-key) + ("collin" ,%collin-ecc-key ,%collin-rsa-key) + ("root" ,%collin-ecc-key ,%collin-rsa-key))))) (service prometheus-node-exporter-service-type) (service dhcp-client-service-type) (service ntp-service-type) diff --git a/.pubkeys/collin-ecc.pub b/.pubkeys/collin-ecc.pub new file mode 100644 index 0000000..6bcf931 --- /dev/null +++ b/.pubkeys/collin-ecc.pub @@ -0,0 +1 @@ +ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBLpK0kvNL8avs8jfsijQoQVwqzODFuwUDYHKauUSlX6lGSoUu1SRnQunOPQLDUgxaigxU9eWp29avXaiPZcP85c= openpgp:0x83F96525 diff --git a/.pubkeys/collin.pub b/.pubkeys/collin-rsa.pub similarity index 100% rename from .pubkeys/collin.pub rename to .pubkeys/collin-rsa.pub