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
- In the left main menu, click Connect and click Settings.
- Under the Integrations tab, select SSH Targets.
- Configure a new integration instance with the information below.
Details needed to set up an SSH Target instance in Spot Connect:
Parameter | Description | Required |
---|---|---|
Resource Alias | A name for the integration instance | True |
Hostname | Identifier for ssh target host such as hostname or public IPv4 | True |
Private Key | RSA key | True |
- Click Add Resource.
- Enter an alias for the integration.
- Enter your hostname or public IPv4.
- Enter your private RSA key.
- Click Add Resource.
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
Parameter | Description | Required |
---|---|---|
SSH Instance | SSH Target integration instance | True |
SSH Command | SSH command to be executed | True |
Log Bucket Name | Name of S3 bucket to store logs | True |
User Name | Username against which command would be executed | True |
Output
Parameter | Type | Description | |
---|---|---|---|
result | String | result from running the command | |
error | String | errors occurred when running the command | |
execution status | String | snippet execution status |
Action Example
-
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.
-
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.