Skip to main content

Shell Service

Hook provides a remote shell service that enables command execution, file upload, and file download on infrastructure nodes. The shell service runs on all Hook nodes and is accessible over the mesh network.

Overview

The Shell Service provides:
  • Remote Command Execution - Execute shell commands on nodes
  • File Upload - Upload files to remote nodes
  • File Download - Download files from remote nodes
  • ACL Protection - Permission-based access control

Architecture

Service Definition

Default Port

The shell service runs on port 61022 across all Hook services:
  • Helm
  • Corsair
  • Nameserver
  • Payload Server

Command Execution

Execute Command

Command Request

Command Response

Examples

File Upload

Upload Request

Upload Examples

Upload Response

File Download

Download Request

Download Examples

Download Response

Access Control

Required Permissions

Shell operations require SSH permissions:

Network Isolation

The shell service is restricted to the mesh network:

Service Startup

The shell service starts automatically on all Hook nodes:

Port Conflict Handling

If the port is already in use, the service skips startup:

Over Mesh Network

Access shell service on mesh-connected nodes:

Next Steps