SSH

SSH lets you run a command on a remote host

Integration with LogicHub

Connecting with SSH

To connect to SSH following details are required:

  • Label: Connection name.
  • Reference Values: Define variables here to templatize integration connections and actions. For example, you can use https://www.{{hostname}}.com where, hostname is a variable defined in this input. For more information on how to add data, see 'Add Data' Input Type for Integrations.
  • SSH Server: The server that you would like to connect to. Hostname or IP is fine.
  • SSH User Name: Client Token for accessing Akamai API.
  • SSH Host Key (Optional): The public ssh-rsa key of the server (Default is Empty value).
  • SSH Password (Optional): Your SSH password is required, only if you don't provide an SSH private key and SSH private key file.
  • SSH Private Key (Optional): Your SSH private key, only if you don't provide an SSH password and SSH private key file (Default is Empty value). The key needs to be base 64 encoded.
    • Command-line example: "cat | base64". Paste the output into the SSH Private Key box.
  • SSH Private Key file (Optional): Your SSH Private key file. Only if you don't provide an SSH password and SSH private key (Default is Empty value).

Actions with SSH

Execute Command

Executes a remote command and retrieves its result.

Inputs to this Action:

  • Connection: Choose connection that you have created.
  • Command: Enter jinja-templated command to execute. For example: ls {{dir_name_column}}
  • SSH Server: jinja-templated text containing the server that you would like to connect to. Hostname or IP is fine. Example: {{ssh_server}}

Output of Action:
result json containing the following items:

  • has_error: True/False
  • error: message/null
  • stdout: messages emitted in stdout after running the ssh command
  • stderr: error messages emitted in stderr after running the ssh command
    Additionally, stdout of SSH command is also forwarded in stdout column

Did this page help you?