Page History
Table of Contents |
---|
Introduction
The JS7 - The JITL SSHJob implements an SSH client (Secure Shell) and allows to execute shell code, scripts and programs on a remote host without a JS7 Agent being installed on that host. As a prerequisite the remote host has to operate an SSH server.
The SSHJob allows SSHJob allows execution on Unix and Windows systems.
- Unix based operating systems generally provide an SSH client, while Windows operating systems by default do not.
- The beauty of SSH is its simplicity. It allows public/private key authentication and is well suited to execute programs for specific accounts.
- The JITL SSHJob allows shell scripts to add return values to orders.
- One of the restrictions of SSH connections is that there is limited control of child processes on the remote host.
- If a number of child processes are spawned by a program during an SSH session and that session is aborted then child processes will continue to run.
- The SSHJob provides a means to control the behavior with output to stderr and exit codes of shell commands.
- For Windows operating systems hardly any products with decent SSH server capabilities are available, therefore use of JS7 Agents for Windows is preferable.
...
When defining the job consider
- to use invoke the Wizard that is available from the job properties tab in the Configuration view ,and to select the JITL job class and SSHJob and respective arguments from the Wizard
- or
- to specify the
com.sos.jitl.jobs.ssh.SSHJob
Java class name.
Example
- , then add arguments as explained from the below documentation.
Documentation
Job Documentation: https://www.sos-berlin.com/doc/JS7-JITL/SSHJob.xml
Example
Download:
A SSHJob configuration can look like this:
The SSHJob arguments A minimal SSHJob configuration can look like this:
Arguments
- Required Arguments
- Arguments that have to be specified with the job configuration.
- Example: The
host
argument is required to run a job that connects to a remote host.
- Example: The
- Arguments that have to be specified with the job configuration.
- Optional Arguments
- Arguments that are not required or arguments that are technically required but are available from default values.
- Example 1: technically required, but available from default value
- To connect to a remote host, the
port
argument is required. The argument is available from the default value22
, therefore theport
argument is not required.
- To connect to a remote host, the
- Example 2: not required
- The
proxy_host
argument is used only if the job's connection makes use of a proxy.
- The
- Example 1: technically required, but available from default value
- Arguments that are not required or arguments that are technically required but are available from default values.
...
Overview
Content Tools