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 >>
    Configuring the Server >>
    Configuring the Client >>
    Authentication >>
    File Transfer Using SFTP >>
    File Transfer Using Transparent FTP Tunneling >>
    Tunneling on the Command Line >>
    Troubleshooting SSH Tectia Server for IBM z/OS >>
    Advanced Information >>
        Running Remote Commands >>
            Remote Command Examples from USS
            Remote Command Examples using JCL
        Submitting JCL Jobs over Secure Shell
        Configuration Options in Load-Balanced Environments
    Man Pages >>
    Log Messages >>

Remote Command Examples using JCL

Example 1: This example shows a remote command for creating a directory on a remote Unix system:

BPXBATCH PGM /usr/lpp/ssh2/bin/ssh2 +
-oCharsetConvert=yes + +
mkdir testdir

Example 2: This example shows a remote command for creating a directory on a remote Windows system. Note that the quotes (") are not needed when Windows commands are run from JCL, but they are needed when the remote commands are run from USS shell:

BPXBATCH PGM /usr/lpp/ssh2/bin/ssh2 +
-oCharsetConvert=yes +
-ostricthostkeychecking=no + +
cmd /c mkdir testdir

Example 3: This example shows multiple commands:

BPXBATCH PGM /usr/lpp/ssh2/bin/ssh2 +
-oCharsetConvert=yes + +
cd /tmp; +
ls -l test.*; +
rm test.txt

PreviousNextUp[Contents] [Index]

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

Copyright © 2007 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