Disconnect
Closes an established SSH connection and releases associated resources.
Common Properties
- Name - The custom name of the node.
- Color - The custom color of the node.
- Delay Before (sec) - Waits in seconds before executing the node.
- Delay After (sec) - Waits in seconds after executing node.
- Continue On Error - Automation will continue regardless of any error. The default value is false.
info
If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.
Inputs
- Client Id - The unique identifier of the SSH connection to close, obtained from the Connect node.
How It Works
The Disconnect node closes an established SSH connection and releases all associated resources:
- Validates the provided client ID
- Retrieves the SSH client associated with the ID
- Closes the SSH connection
- Removes the client from the internal connection pool
Requirements
- A valid client ID from a previously established SSH connection using the Connect node
Error Handling
The node will return specific errors in the following cases:
- Empty or invalid client ID
- No active connection found for the provided client ID
Usage Notes
- Always use this node to properly close SSH connections when they are no longer needed
- Failing to disconnect may lead to resource leaks
- Once disconnected, the client ID becomes invalid and cannot be used with other SSH nodes