The SSH node is useful for executing commands via the Secure Shell Protocol.
You can find authentication information for this node here.
# Basic Operations
- Execute a command
- Download a file
- Upload a file
# Node Reference
- Authentication: A dropdown list to choose between Password or Private Key authentication.
- Resource: A dropdown list used to specify if you are executing a command or processing a file.
- Operation: A dropdown list to select the action to be performed. When selecting Command as the Resource, only Execute is available. For a File Resource you can select either Upload or Download.
- Command: Only visible for Command resources. The command to execute on the remote machine.
- Working Directory: Only visible for Command resources. The directory where the command should be executed.
- Path: Only visible for Download operation on file resources. The path where the desired file is found.
- Binary Property: Only visible for file resources. The name of the binary property which contains the data for the file to be uploaded.
- Target Directory: Only visible for Upload operations on file resources. The directory to upload the file to. The name of the file does not need to be specified, it's taken from the binary data file name. To override this behavior, set the parameter File Name under options.
# Example Usage
This workflow allows you to remotely connect to your computer via SSH. This example usage workflow would use the following nodes.
The final workflow should look like the following image.
# 1. Start node
The start node exists by default when you create a new workflow.
# 2. SSH node
- From the SSH Credentials dropdown, select Create New or an existing credential.
- Select Password from the Authentication dropdown list.
- Select Command from the Resource dropdown list.
- The Execute option is automatically selected as the Operation.
- In the Command field enter the command to execute. Here we used
lsjust to see the local directory contents.
- In the Working Directory field you can enter where the command should be executed. Here we ran it in the root directory.
- Click on Execute Node to run the node.