setup-spoke.sh: print exact authorized_keys command with public key when displaying hub key instructions

This commit is contained in:
Justin Oros
2026-04-19 21:32:23 -07:00
parent 4e2f17266a
commit b76e890857

View File

@@ -215,6 +215,10 @@ case "$KEY_CHOICE" in
cat "$KEY_PATH.pub" cat "$KEY_PATH.pub"
echo -e "${YELLOW}══════════════════════════════════════════${NC}" echo -e "${YELLOW}══════════════════════════════════════════${NC}"
echo "" echo ""
echo -e "${YELLOW} On the hub, run as ${HUB_USER}:${NC}"
echo ""
echo " echo "$(cat "$KEY_PATH.pub")" >> /home/${HUB_USER}/.ssh/authorized_keys"
echo ""
read -rp "Press ENTER once the key has been added to ${HUB_HOST}..." read -rp "Press ENTER once the key has been added to ${HUB_HOST}..."
;; ;;
2) 2)