Rocket is a command-line interface tool for managing SSH connections. It simplifies the process of adding, launching, and deleting connections.
- Create a virtual environment and activate it:
python3 -m venv venv
source venv/bin/activate- Install the required packages:
2. pip install -r requirements.txt- Make the
main.pyfile executable:
chmod +x main.py- Move and rename the
main.pyfile to/usr/local/bin/rocket:
sudo mv main.py /usr/local/bin/rocketNow, you can run the Rocket CLI tool by simply typing rocket in the terminal.
- Set the default username:
rocket install- Add a connection:
rocket add --username <username> --host <host> [--nickname <nickname>] [--through-proxy]- Add a proxy:
rocket add-proxy --username <username> --host <host> [--nickname <nickname>]- Launch a connection:
rocket launch [<nickname>]- Delete all connections and configuration:
rocket deleteRun the unit tests with:
python -m unittest test_rocket.pyWith these changes, users will be able to run the Rocket CLI tool directly from their terminal by typing rocket followed by the desired subcommand.