SSH

Environment Variables for Server and Client Applications

The environment variables _BPXK_AUTOCVT, _BPX_SHAREAS and _BPX_BATCH_UMASK must be set as shown in <HLQ>.V650.PARMLIB(SSHENV) and sshsetenv (located in /opt/tectia/doc/zOS/samples) when running Tectia Server for IBM z/OS programs (see below). The server startup procedures described in Running the SSH Server (sshd2) set these variables from the STDENV DD.

The format of SSHENV is used when the client or server programs are run under MVS, and sshsetenv is used when the programs are run from a USS command line.

[Note]Note

The environment files must not contain line numbers or reading them will fail.

SSHENV:
_BPXK_AUTOCVT=ON
_BPX_SHAREAS=NO
_BPX_BATCH_UMASK=0022
SSH_DEBUG_FMT="%W(72)(2) %Dd/%Dt/%Dy %Dh:%Dm:%Ds:%Df %m/%s:%n:%f %M"
SSH_MVS_CONSOLE=YES
_BPXK_JOBLOG=STDERR
_EDC_ADD_ERRNO2=1
sshsetenv:
export _BPXK_AUTOCVT=ON
export _BPX_BATCH_UMASK=0022
export _BPX_SHAREAS=NO
export SSH_DEBUG_FMT="%W(72)(2) %Dd/%Dt/%Dy %Dh:%Dm:%Ds:%Df %m/%s:%n:%f %M"
export _EDC_ADD_ERRNO2=1

The server will do coded character set conversion on request when transferring files. The iconv function is used for the conversion. iconv() uses the following environment variables (it is usually not necessary to change them):

_ICONV_UCS2

Tells iconv_open(Y, X) which type of a conversion method to set up when there is a choice between "direct" conversion from X to Y and "indirect" X to UCS-2 to Y.

_ICONV_UCS2_PREFIX

Tells iconv_open() which z/OS data set name prefix to use to find the UCS-2 tables if they cannot be found in the HFS.