Overview
Thessh_connect action establishes an SSH connection to a remote GPU server. Once connected, all shell commands will automatically run on this server through the remote_shell action.
Function Signature
Input Schema
The hostname or IP address of the remote server.
SSH username for authentication.
SSH password for authentication. Optional if using key-based authentication.
Path to private key file for authentication. If not provided, uses
SSH_PRIVATE_KEY_PATH from environment variables.SSH port number. Defaults to 22.
Response
Returns a connection status message.A message indicating whether the SSH connection was successful or failed, with relevant details.
Example Usage
SSH Key Configuration
Environment Variable
Set the SSH private key path in your.env file:
Supported Key Types
- RSA keys (recommended and required for Hyperbolic)
- ED25519 keys are NOT supported by Hyperbolic platform
Generating an RSA Key
If you need to generate a new RSA key:Adding Public Key to Hyperbolic
- Navigate to Hyperbolic Settings
- Add your RSA public key (
~/.ssh/id_rsa.pub) - This enables SSH access to rented GPU instances
Important Notes
- After connecting, use the
remote_shellaction to execute commands on the server - Use the command
ssh_statuswithremote_shellto check connection status - Connection remains active until explicitly disconnected or script ends
- Only one active SSH connection is maintained at a time
- Connecting to a new server will close any existing connection
- Requires either password or private key for authentication
Workflow with Hyperbolic GPUs
Related Actions
- Remote Shell - Execute commands on connected server
- Get GPU Status - Get SSH connection details for instances
- Rent Compute - Rent GPU instances to connect to