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.py
file executable:
chmod +x main.py
- Move and rename the
main.py
file to/usr/local/bin/rocket
:
sudo mv main.py /usr/local/bin/rocket
Now, 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 delete
Run the unit tests with:
python -m unittest test_rocket.py
With these changes, users will be able to run the Rocket CLI tool directly from their terminal by typing rocket followed by the desired subcommand.