How funye/terminal-tool works
Project type and purpose
• This is a small command-line “terminal tool” whose sole purpose is to let users select one of many servers from a JSON file and then open an SSH session (either by password or by key) in an automated, interactive way.
File structure
Top-level files:
• config.json – stores an array of server definitions (name, host, port, credentials…)
• start.sh – the entry-point script that reads config.json, presents a menu, and dispatches to one of the SSH scripts
• ssh_password.sh – handles spawning an SSH session with password-based login
• ssh_sshkey.sh – handles spawning an SSH session with key-based login
• ssh_password.sh / ssh_sshkey.sh both use “spawn” and “jq” to parse and drive interactive SSH
• readme.md – describes setup, usage, and dependencies
README for additional insights
• The tool depends on:
• jq (for JSON parsing)
• spawn (for automating interactive SSH prompts)
• standard “ssh” CLI
• Usage flow: clone → configure config.json → run start.sh → choose server → connect → (optionally alias the launcher)