#!/usr/bin/env bash set -e KEY_URL="https://raw.githubusercontent.com/NaysKutzu/.keys/refs/heads/main/mythical.pub" # Read user from TTY (curl | bash safe) read -rp "Install SSH key for user [root]: " TARGET_USER > "$AUTH_KEYS" fi rm -f "$TMP_KEY" chmod 700 "$SSH_DIR" chmod 600 "$AUTH_KEYS" chown -R "$TARGET_USER:$TARGET_USER" "$SSH_DIR" echo "✅ SSH key installed for user '$TARGET_USER'"