#!/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