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

SSH Tectia 
PreviousNextUp[Contents] [Index]

    About This Document >>
    Installing SSH Tectia Server for IBM z/OS >>
    Getting Started with SSH Tectia Server for IBM z/OS >>
        Running the Server >>
            Starting sshd2 Manually under USS
            Running sshd2 as a Started Task
            Restarting and Stopping sshd2
            Starting ssh-certd Manually under USS
            Running ssh-certd as a Started Task
            Restarting and Stopping ssh-certd
        Environment Variables for Server and Client Applications
        Setting Up a Shell User >>
    Configuring the Server >>
    Authentication >>
    System Administration >>
    File Transfer Using SFTP >>
    Secure File Transfer Using Transparent FTP Security >>
    Tunneling >>
    Troubleshooting SSH Tectia Server for IBM z/OS >>
    Man Pages and Default Configuration Files >>
    Log Messages >>

Running sshd2 as a Started Task

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

SSHD2:

//RUSSHD2 PROC F=START
//SSHD2   EXEC PGM=BPXBATCH,REGION=0M,TIME=NOLIMIT,
//             PARM='PGM /bin/sh /opt/tectia/etc/init.d/sshd2
//             &F foreground'
//STDOUT   DD  PATH='/tmp/SSHD2-sshd2.out',
//             PATHOPTS=(OWRONLY,OCREAT,OTRUNC),
//             PATHMODE=(SIRUSR,SIWUSR)
//STDERR   DD  PATH='/tmp/SSHD2-sshd2.err',
//             PATHOPTS=(OWRONLY,OCREAT,OTRUNC),
//             PATHMODE=(SIRUSR,SIWUSR)
//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 foreground option that disables the daemon mode. With the foreground option, the server does not spawn the process to background and the server task name stays as sshd2.

The sshd2 started task can also be started with a 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, for example:

RDEFINE STARTED SSHD2.* STDATA(USER(SSHD2)GROUP(SYS1))
SETROPTS RACLIST(STARTED) REFRESH 

For more information, see Appendix sshd2.

PreviousNextUp[Contents] [Index]


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

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


 

 
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