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

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?