Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Secure Shell (SSH) connector methods

The Secure Shell (SSH) connector methods establish an SSH connection, execute commands over the established connection, and disconnect the session.

Connect

Establishes an SSH connection. Provide the information required to connect to a remote machine.

Select the settings icon (

Image omitted: component-settings-icon.png
Settings icon\) to choose the authentication type.

Supported authentication types are Password, KeyboardInteractive, and KeyFileAuthentication.

Image omitted: ssh-connector-auth-types.png
The authentication type configuration window displaying the Password, KeyboardInteractive, and KeyFileAuthentication as authentication types.

Password is the default authentication type.

ParameterDescriptionData Port TypeData type
HostNameHost name of the remote server or IP address.Data InString
UsernameUser name of the SSH account.Data InString
PasswordSecure string representation of the password. Password of the SSH account. You can use the SecureStringEncode component to encode the secure string password as mentioned in the following example. For more information, see Use the SecureStringEncode component.
Image omitted: ssh-connect-pwd-example.png
SecureStringEncode component is connected to the Connect method to pass the encoded password.
After you perform this task, you can connect to the remote server.
Data InSecureString
PortOptional. The port number for the SSH connection. Default value is 22.Data InInteger
CreateShellOptional. If True, a shell stream is created on successful connection. Any command that is executing on this connection uses the shell.If False, any command that is executing on this connection does not the shell. Default value is True.Data InBoolean
KeyboardInteractiveAuth

Password as a challenge. If True, the server prompts the client for password to verify the user's identity. Value provided in the password parameter is shared as a response from client.

This parameter appears only when KeyboardInteractive is selected from the Authentication Type.

Data InBoolean
KeyFilepathPath of the private key.This parameter appears only when KeyFileAuthentication is selected from the Authentication Type.Data InString
PassphraseOptional. If private key is encrypted using Passphrase, same value is provided inside the Passphrase parameter to use the private key.This parameter appears only when KeyFileAuthentication is selected from the Authentication Type.Data InString

RunCommand

After establishing an SSH connection, execute commands over the established connection using the RunCommand method.

ParameterDescriptionData Port TypeData type
CommandCommands that must be executed on the remote SSH server, such as messages or scripts, can be valid shell commands or executable commands that the remote server can understand.For example, `echo hello`.
Image omitted: ssh-run-command-example.png
Command entered as "echo hello" in the Command parameter RunCommand method
Data InString
TimeoutOptional. The parameter that specifies the maximum time \(in seconds\) to wait for the command's output from the SSH server when using an interactive shell.Default value is 30.Data InInteger
ReturnThe result of the executed command.For example, after executing the automation, in the Data Preview of Return parameter, "hello" is displayed.
Image omitted: ssh-run-command-return-example.png
Data previews as hello, after the command is executed
Data OutString

Disconnect

After executing commands, disconnect the established connection using the Disconnect method.

The following example shows the entire automation after adding the Disconnect method.

Image omitted: ssh-disconnect-example.png
SSH connector automation workflow example.

Parent Topic:Secure Shell (SSH) connector