setup-spoke.sh: replace manual hub instructions with onboard-spoke.sh next step prompt

This commit is contained in:
Justin Oros
2026-04-19 14:09:30 -07:00
parent e5bdf95dcf
commit 5a9e55b673

View File

@@ -405,23 +405,7 @@ echo -e " Spoke name: ${GREEN}$SPOKE_NAME${NC}"
echo -e " Tunnel port: ${GREEN}$TUNNEL_PORT${NC} on $HUB_HOST" echo -e " Tunnel port: ${GREEN}$TUNNEL_PORT${NC} on $HUB_HOST"
echo -e " SSH key: ${GREEN}$KEY_PATH${NC}" echo -e " SSH key: ${GREEN}$KEY_PATH${NC}"
echo "" echo ""
echo -e "${YELLOW}The hub owner needs to do the following on ${HUB_HOST} as ${HUB_USER}:${NC}" echo -e "${YELLOW}Next step — on the hub, run as ${HUB_USER}:${NC}"
echo "" echo ""
echo " NOTE: Run all commands below as ${HUB_USER}, not root." echo " cd tinyboard && ./setup.sh # choose option 2 (onboard spoke)"
echo ""
echo " 1. Generate a hub->spoke key:"
echo " ssh-keygen -t ed25519 -f /home/${HUB_USER}/.ssh/${HUB_USER}-${SPOKE_NAME}-$(date +%Y%m)"
echo ""
echo " 2. Copy it to this spoke through the tunnel:"
echo " ssh-copy-id -i /home/${HUB_USER}/.ssh/${HUB_USER}-${SPOKE_NAME}-$(date +%Y%m).pub -p $TUNNEL_PORT ${HUB_USER}@localhost"
echo ""
echo " 3. Add an rclone remote in /home/${HUB_USER}/.config/rclone/rclone.conf:"
echo " [${SPOKE_NAME}-remote]"
echo " type = sftp"
echo " host = localhost"
echo " port = $TUNNEL_PORT"
echo " key_file = /home/${HUB_USER}/.ssh/${HUB_USER}-${SPOKE_NAME}-$(date +%Y%m)"
echo " shell_type = unix"
echo " md5sum_command = md5sum"
echo " sha1sum_command = sha1sum"
echo "" echo ""