Skip to end of metadata
Go to start of metadata



The JobScheduler JITL SSH job uses either an SSH implementation from Trilead or, starting with JobScheduler version 1.9, an implementation of JCraft's JSch.

JSch is the default implementation for the JITL SSH job from JobScheduler version 1.10 onwards. The Trilead SSH implementation will not be supported from JobScheduler version 1.12 and removed later.

The JSch implementation for SSH connections adds the use of return values to the already existing functionality of the JobSchedulerSSHJob.

To use the JSch implementation in JobScheduler Version 1.9.x you have to configure the following parameter in the params section of the scheduler.xml, in newer versions you don´t have to configure this parameter.

If you still want to use the Trilead SSH implementation in versions 1.10 and newer, change the parameter value shown below to false.

The Job sets an environment variable to the session on the remote host with the name SCHEDULER_RETURN_VALUES which is available for the script or command to be executed on the remote machine. The value (the name of the temporary file) for this environment variable will be generated at runtime. After the execution of the script or command the jobs reads the return values from that temporary file on the remote host, returns them to the Jobscheduler for further processing and deletes the temporary file afterwards.

Related Issues

JITL-112 - Setting order parameters by shell scripts executed with SSH Jobs Released

JITL-123 - JITL SSH Job should switch from Trilead to JSch implementation by JCraft Released

JITL-151 - SSH jobs should support elliptic curves (ECDSA) for authentication Released

JITL-446 - SSH Job does not resolve environment variable correctly when set in command parameter Released

JITL-449 - SSH Job should support recognition of the target shell instead of the Operating System Released

Passing variables back to the JobScheduler

To use this feature you have to make sure that your command or command script writes the key-value-pair, which you want to have passed back to the JobScheduler, to the temporarily created file.


The command echo MYPARAM=myTestParam >> $SCHEDULER_RETURN_VALUES writes MYPARAM=myTestParam to the temporary file defined by the environment variable $SCHEDULER_RETURN_VALUES.

The environment variable will be set implicitily during the job execution.

New parameters

General information

The default values use the linux bash syntax. These parameters have to be set only if running on systems using a different syntax than the linux bash syntax. Please choose the format of the command value and it placeholders according to the operating system on the remote host.


  • format: 
    • <command> <placeholder1> = <placeholder2>
  • default value: 
    • export %s='%s'
  • description: 
    • The command to set an environment variable. The values for placeholders 1 and 2 will be set implicitly at the start of the job execution. The placeholders are mandatory.


  • format: 
    • <command> <placeholder>
  • default value: 
    • cat %s
  • description:
    • The command to read the temporary file where the return values are written to through the script/command execution of the SSH job. The placeholder will be substituted during the job execution. 


  • format: 
    • <command> <placeholder>
  • default value: 
    • rm %s
  • description:
    • The command to delete the temporary file with the return values. The placeholder will be substituted during the job execution. 

Parameters available starting with release 1.12.2


  • type
    • String
  • description:
    • This parameter is used to set the path of tte remote folder where the user has write privileges.
      •  if the parameter is not set the default working dir of the SSH session is used.


The SSH Job always tries to detect the remote OS and assumes the remote shell. The preCommandpostCommandRead and postCommandDelete parameters will be set automatically.

  • type
    • boolean
  • description:
    • If set to false this parameter deactivates the automatic setting of the above mentioned parameters, detection of the remote OS and shell will be carried out and logged regardlessly.
  • default value: 
    • true


To use the return-values-feature configure a SSH job with JOE and choose JobSchedulerSSHJob

Example 1: A minimal SSH Job configuration

Example for the JobScheduler SSH Job
Simple SSH Job  Expand source

Example 2: A job chain that processes return values

Order Job storing a key/value pair on the remote host  Expand source
Order job reading the returned value(s)  Expand source
Jobchain to write value(s) remote and read the returned Scheduler parameters  Expand source


For known limitations using the SSH Job to connect to a Windows Remote Host see Limitations when using SSH jobs for Windows.

Known issues

Connecting over SSH

Sometimes while connecting an error occurs which states " Prime size must be multiple of 64, and can only range from 512 to 2048 (inclusive)".

This Java-Security issue is documented as a bug here and here.

To workaround this issue you can do as follows:

  • First download the following jars from BouncyCastle at
    • bcprov-jdk15on-152.jar

    • bcprov-ext-jdk15on-152.jar

  • Copy those jars to your ${JAVA_HOME}/jre/lib/ext/ folder
  • Edit the ${JAVA_HOME}/jre/lib/security/ properties file
    • Add the JCE provider you’ve just downloaded
      • Search for security.provider in the configuration and add the BouncyCastleProvider as the second provider

After the changes your configuration should look like this:

Make sure to add the BouncyCastleProvider as the second Provider and adjust the numeration.

  • If you add the Provider as the first, the default Java JCE can be broken.
  • If you add the Provider as the last one, it can happen that Java doesn´t recognizes it.

Change Management References