Your browser does not allow storing cookies. We recommend enabling them.

SSH

Using File Transfer Profiles

  1. Copy the example file transfer profile file /opt/tectia/etc/ssh_ftadv_config.example to ssh_ftadv_config. (You can skip this step if /opt/tectia/etc/ssh_ftadv_config already exists.)

    > cd /opt/tectia/etc
    > cp ssh_ftadv_config.example ssh_ftadv_config
  2. Use oedit or any other text editor of your choice to edit the ssh_ftadv_config file:

    > oedit ssh_ftadv_config
  3. Add the following lines before the line "# Match all other files.":

    # Match files that end with '.jcl'
    .*\\.(jcl)$
          FILETYPE=JES,
          X=text,
          F=line,
          C=iso8859-1,
          D=ibm-1047
    
    # Match files that start with JOB
    .\\JOB*
          FILETYPE=JES,
          X=text,
          F=line,
          C=iso8859-1,
          D=ibm-1047
  4. Press F3 to save and close the file.

Now you can securely submit jobs to JES from any platform by simply doing a put of any file that ends in .jcl and get the results for that job by doing a get with a job ID.

  1. Create some sample JCL files in proper JCL format on the machine where your SSH client resides. This can be any platform including z/OS, Windows and different UNIX platforms.

    You can use the following JCL for testing purposes:

    //USERJ0 JOB ,,CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1),
    // NOTIFY=&SYSUID
    //*
    //STEP00 EXEC PGM=IEFBR14
    //

    For this example we named the file br14.jcl.

  2. Connect to the z/OS SFTP server where you edited the ssh_ftadv_config file:

    > sftpg3 <my-zos-host>

    Make sure that the server is running and you are using the correct port.

  3. Enter the following command from the sftp command prompt:

    sftp> put br14.jcl

    At the end of the output you can see the job ID. In this example, the job ID is JOB09291.

    br14.jcl
    | 116B | 110B/s | TOC: 00:00:01 | 100%
    02.31.34 JOB09291 $HASP100 USERJ0 ON INTRDR
    FROM STC09290 MACH8
    02.31.34 JOB09291 IRR010I USERID USER IS ASSIGNED TO THIS JOB.
    JOBID=JOB09291
  4. To get the results for JOB09291, enter the following command from the sftp command prompt:

    sftp> get JOB09291

    The job results will be stored in the current sftp local directory in a file named JOB09291.


 

 
Highlights from the SSH.COM blog:

  • Cryptomining with the SSH protocol: what big enterprises need to know about it

    Cryptomining malware is primarily thought of as targeting desktops and laptops and is used to hijack system resources to mine cryptocurrency.
    Read more
  • SLAM the door shut on traditional privileged access management

    Did you know that something as trivial-sounding as granting access for your developers or third parties to a product development environment can throw a gorilla-sized monkey wrench into your operations and productivity?
    Read more
  • We broke the IT security perimeter

    Everyone understands the concept of a security perimeter. You only gain access if you are identified and authorized to do so.
    Read more