This extension provides a robust /ssh command for interacting with remote servers, enabling secure command execution directly from the Gemini CLI.
It uses the paramiko Python library, ensuring reliable and secure connections.
- Simplified Command: A single
/sshcommand for all remote execution. - Standard SSH Syntax: Uses familiar
user@hostname "command"syntax. - Secure Connections: Leverages the
paramikolibrary and your local SSH agent for authentication. - Detailed Output: Returns
stdout,stderr, and theexit_codefor every command.
- Prerequisites: Ensure you have Python and
pipinstalled. - Install Dependencies: From within this extension's directory, run:
pip install -r requirements.txt
- Install the Extension: Run the following command from the extension's directory:
gemini extensions install . - Restart Gemini CLI: This is a critical step. Close and reopen the Gemini CLI to ensure the new
/sshcommand is registered.
The extension provides a single ssh tool that can be used like a command.
Executes a shell command on a remote host. The arguments should be a single string in the format user@hostname "command".
Example:
/ssh args='bitnami@63.178.255.78 "df -h"'