SSH Tectia  
Previous Next Up [Contents] [Index]

    About This Document >>
    Installing SSH Tectia Server for IBM z/OS >>
    Using SSH Tectia Server for IBM z/OS >>
        Running the Server >>
            Starting the Server Manually under USS
            Running as a Started Task
            Starting the Server in Debug Mode
            Environment Variables for the Server
            Running ssh-certd
            Restarting the Server
        Setting Up a Shell User>>
        Running Client Programs>>
        Handling MVS Datasets and HFS File System Access>>
        Listing Datasets with SFTP Clients>>
    Configuring the Server >>
    Configuring the Client >>
    Authentication >>
    Troubleshooting SSH Tectia Server for IBM z/OS >>
    Examples of Use >>
    Man Pages >>
    Log Messages >>

Running as a Started Task

To run sshd2 as a started task, use a JCL procedure such as SSHD2 (shown below). The JCL must be installed in the procedure library.

SSHD2:

//RUNSSHD2 PROC
//SSHD2   EXEC PGM=BPXBATCH,REGION=0M,TIME=NOLIMIT,
//             PARM='PGM /bin/sh /etc/ssh2/init.d/sshd2
//             start foreground'
//STDOUT   DD  PATH='/home/SSHD2/sshd2.out',
//             PATHOPTS=(OWRONLY,OCREAT,OTRUNC),
//             PATHMODE=(SIRUSR,SIWUSR)
//STDERR   DD  PATH='/home/SSHD2/sshd2.err',
//             PATHOPTS=(OWRONLY,OCREAT,OTRUNC),
//             PATHMODE=(SIRUSR,SIWUSR)
//STDENV   DD  DSN=SSHD2.SSZ.SAMPLIB(SSHENV),
//             DISP=SHR
//STDIN    DD  DUMMY
//        PEND

Start the server with the following operator command:

== > s sshd2 

The sshd2 job starts.

In the sample SSHD2 script above, sshd2 is started with the start foreground option that disables the daemon mode. With the start foreground option, the server does not spawn the process to background and the server task name stays as sshd2.

If the sshd2 process is started without the start foreground option, the sshd2 server starts and spawns a new job with the name sshd2x (where x is a number). After this, the sshd2 job ends.

The sshd2 started task can also be started with user-specified job name:

== > s SSHD2,jobname=own_job_name

You can assign the user SSHD2 to the started task by defining the procedure in the STARTED class and entering the user ID in the STDATA segment.

Previous Next Up [Contents] [Index]


[ Contact Information | Support | Feedback | SSH Home Page | SSH Products ]

Copyright © 2006 SSH Communications Security Corp.
This software is protected by international copyright laws. All rights reserved.
Copyright Notice