Overview
An SSH action runs one command on a remote host as one step of a workflow. It runs with a SSH profile, on the Callgoose cloud or on your own automation runner.
You need
Permission to manage automation actionsWhere
Automation > ActionsResult
A SSH step for your workflowsCreate the action
- Go to Automation > Actions, choose Global or a team, click Add Action and choose SSH.
- Optional: Copy From a Callgoose action or one of yours, then change it.
- Fill in the fields below and click Save.
| Field | What to enter |
|---|---|
| Name, Description | What the action does. |
| Have Argument | Yes if the workflow passes arguments. |
| SSH OS command | The single command to run, for example df -hT. |
| Files from Git or Callgoose | Keep the files in SQIBS, or in Git with an action entry file. |
| Success Exit Code | The exit status that means success, usually 0. |
| Expected Run Time(in Minutes) | 1 to 60. Longer than this counts as failed. |
Example
Restart a service on the host with sudo systemctl restart nginx (the SSH user needs the sudo rule).
Test the script or command on a test host first. It runs with the rights of the profile's user, so give that user only what the task needs.