Skip to main content

SSH Target

Use this integration to run commands over SSH and log results and errors.

SSH Targets in a Spot Connect workflow lets you execute a command over SSH and collect logs.

Configure SSH Targets in Spot Connect

  1. In the left main menu, click Connect and click Settings.
  2. Under the Integrations tab, select SSH Targets.
  3. Configure a new integration instance with the information below.

Details needed to set up an SSH Target instance in Spot Connect:

ParameterDescriptionRequired
Resource AliasA name for the integration instanceTrue
HostnameIdentifier for ssh target host such as hostname or public IPv4True
Private KeyRSA keyTrue
  1. Click Add Resource.
  2. Enter an alias for the integration.
  3. Enter your hostname or public IPv4.
  4. Enter your private RSA key.
  5. Click Add Resource.

ssh-target-2

Integration Actions

You can add these actions in the Spot Connect workflow builder as part of your workflow.

SSH Execute

Use this action node to execute an SSH command on any remote device and get results.

Input

ParameterDescriptionRequired
SSH InstanceSSH Target integration instanceTrue
SSH CommandSSH command to be executedTrue
Log Bucket NameName of S3 bucket to store logsTrue
User NameUsername against which command would be executedTrue

Output

ParameterTypeDescription
resultStringresult from running the command
errorStringerrors occurred when running the command
execution statusStringsnippet execution status

Action Example

  1. From the workflow builder in the left panel, drag and drop the SSH Execute action snippet on the workflow builder. Connect it with the trigger node.

  2. Select the SSH Execute action node and complete this information:

    • SSH Instance: Select an SSH Execute integration instance from the dropdown menu.
    • SSH Command: Enter the SSH Command that you want to run.
    • Log Bucket Name: Select Log Bucket Name from the dropdown menu to store error logs.
    • User name: Enter the username that will run the command.

Input

ssh-target-2

Output

ssh-target-3