From 326034c2b26c8102afb2be730e0fece9dea39d00 Mon Sep 17 00:00:00 2001 From: Michael Housh Date: Tue, 30 Sep 2025 11:06:18 -0400 Subject: [PATCH] feat: Adds import script. --- import | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 import diff --git a/import b/import new file mode 100755 index 0000000..db34cf3 --- /dev/null +++ b/import @@ -0,0 +1,25 @@ +#!/usr/bin/env bash + +# Imports public gpg key that's stored on a yubikey, set's the trust settings, and +# copies the ssh key. This is only needed to be done once on a new machine. + +KEYID="90D3EB6274D5B7CF" +SSH_FILE="~/.ssh/id_ed25519_sk.pub" + +# Import the public key +gpg --import 90D3EB6274D5B7CF-2025-03-29.asc + +# Set trust settings to ultimate for gpg key. +gpg --command-fd=0 --pinentry-mode=loopback --edit-key $KEYID <$SSH_FILE + chmod 600 $SSH_FILE +fi