Dovetailed Technologies Solutions Support Contact Us

Appendix D. Customizing sftp-server.rc

This file, when present in a user's $HOME/.ssh directory, activates the Co:Z sftp-server rather than the IBM ported tools version. This file must be marked as executable (u+x). This profile may be used to set environment variables to control the operation of Co:Z sftp-server.

#! /bin/sh
# The presence of this executable script in $HOME/.ssh/sftp-server.rc
# will cause the COZ version of sftp-server to be used

# You may uncomment and set the following options to override the defaults:  
#export SFTP_ZOS_OPTIONS="mode=text" 1
#export SFTP_ZOS_INITIAL_DIR=// 2

# The Co:Z support team may request that you uncomment the following options
# to enable tracing:
#export SFTP_SERVER_OPTIONS="-e -l debug3"
#export COZ_LOG=T
1

The SFTP_ZOS_OPTIONS environment variable can be used to set the default options for the user. Multiple options may be specified, separated by commas. The options are described here: Section 3.1, “Setting, displaying and clearing file transfer options”.

2

The SFTP_ZOS_INITIAL_DIR environment variable can be used to override the home directory on the server. By default this is the user's USS home directory. If the string // is supplied, the user's MVS top level qualifier is used. Otherwise an absolute path (USS or MVS dataset space) may be supplied.

Copyright 2009 Dovetailed Technologies, LLC. All rights reserved.