post /ssh-mitm/api/v1/exec

Execute command on ssh target host

username

string

required

ssh target username

hostname

string

required

ssh target hostname including optional port

env

array[object]

environment variables

command

string

required

command to execute

stdin_base64

string

base64 encoded stdin input for command

keep_open_sec

int

SSH connection idle timeout in seconds

close

boolean

Close SSH connection

Request

{
  "username": "string",
  "hostname": "string",
  "env": [
    {
      "key": "string",
      "value": "string"
    }
  ],
  "command": "string",
  "stdin_base64": "string",
  "keep_open_sec": 123,
  "close": true
}

Response

ExamplesSchema

Operation succesful, response

{
  "exit_status": 123,
  "exit_signal": "string",
  "exit_signal_message": "string",
  "stdout_base64": "string",
  "stderr_base64": "string"
}

Was this page helpful?