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

SSH

JCL-Specific Transparent FTP Tunneling or FTP-SFTP Conversion

In this example, transparent FTP tunneling or FTP-SFTP conversion is configured per FTP JCL job using a SYSFTPD DD statement.

Do the following steps:

  1. Copy the /opt/tectia/etc/ssh-socks-proxy-config-example.xml configuration file to /opt/tectia/etc/ssh-socks-proxy-config.xml.

  2. (FTP-SFTP conversion only) If you want to use FTP-SFTP conversion, edit the configuration file and change the value of the action attribute to "ftp-proxy":

      <filter-engine>
         <rule ip-address=".*"
               ports="21"
               action="ftp-proxy"
               profile-id="id1"
               username-from-app="YES"
               hostname-from-app="YES"
               fallback-to-plain="NO" />
      </filter-engine>
    
  3. Start the SOCKS Proxy if it is not already running.

  4. Create a new FTP configuration file EXAMPLE.SSHFTP.FTPDATA with the following contents:

    SOCKSCONFIGFILE  EXAMPLE.JCL.SOCKS.CONF
    FWFRIENDLY       TRUE
    
  5. Create a new socks configuration data set EXAMPLE.JCL.SOCKS.CONF with the following contents:

    sockd @=127.0.0.1 0.0.0.0 0.0.0.0
    
  6. Modify your existing FTP JCL to use SOCKS by adding a SYSFTPD DD statement, for example:

    //FTP       EXEC PGM=FTP,PARM='company.example.com
    (EXIT=8'
    //SYSPRINT  DD  SYSOUT=*
    //SYSFTPD   DD  DSN=EXAMPLE.SSHFTP.FTPDATA,DISP=SHR
    //SYSIN     DD  *
    userid   passwd
    ascii
    get test.file 'USERID.FTP.TEST'
    quit
    /*    
    


 

 
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