SSH Connector
This adapter connects to SSH servers using the Secure Shell protocol.
Properties
Operation | Defines the operation executed by the adapter Possible values:
|
Parameters
Adapter | Adapter main class (do not change!) Possible values: de.softproject.integration.adapter.ssh.SSHAdapter: main class (default) |
host | Server host Possible values: Any valid host or IP, e. g. |
user | User to log in to the server Possible values: String containing the user name, e. g. |
password | Password to log in to the server Possible values: String containing the password, e. g. |
port | Server port Possible values:
|
timeout | Timeout in milliseconds for waiting until the connection to the server is established Possible values:
|
Status values
0 | The operation was executed successfully. |
Distinct to 0 | An error occurred during the operation's execution |
Input
The adapter expects a specific XML document as input:
Sample input
<?xml version="1.0" encoding="UTF-8"
<Root>
<Command>netstat -plnt |grep 8080</Command>
</Root>
<Command>
element contains the command to be executed on the server.
Output
The adapter returns an XML document with the output and the status.
Output corresponding to the sample input
<?xml version="1.0" encoding="UTF-8"
<Output>
<CommandOutput>tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN - </CommandOutput>
<ExitStatus>0</ExitStatus>
</Output>