sftp-server.rc multiple options

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
LeonBylsma
Posts: 22
Joined: Thu Apr 16, 2009 8:26 am

sftp-server.rc multiple options

Post by LeonBylsma »

We are running version 1.5.0 (5.0p1). Can we export multiple options in sftp-server.rc e.g. export SFTP_ZOS_OPTIONS="mode=text,lrecl=200,recfm=fb,blksize=27800"
...

I tried the above combination but then the client gets disconnected at login. As soon as I remove the syntax from the sftp-server.rc then the client can log in again.
coz
Posts: 392
Joined: Fri Jul 30, 2004 5:29 pm

Post by coz »

This should work. Are there any messages in your error log that indicate what the issue might be?

If not, in your sftp-server.rc:

Code: Select all

export COZ_LOG=F
along with the SFTP_ZOS_OPTIONS string that is failing. Connect with the client, then post the error log here, or send to info@dovetail.com.
LeonBylsma
Posts: 22
Joined: Thu Apr 16, 2009 8:26 am

result of debug

Post by LeonBylsma »

This is the sftp-server.rc contents :
#! /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
export SFTP_SERVER_OPTIONS="-e -l debug3"
export COZ_LOG=F
export SFTP_ZOS_OPTIONS="mode=text,lrecl=200,recfm=fb"
export SFTP_ZOS_INITIAL_DIR=//FTP06004
USE_COZ_SFTP=true
SFTP_LOGFILE=/dev/console



and this is the trace output :
BPXF024I (FTP06004) Copyright (C) Dovetailed Technologies, LLC. 2008.
647
All rights reserved.
BPXF024I (FTP06004) ZosSettings F : clientCodePage set to ISO8859-1 648
(default)
BPXF024I (FTP06004) ZosSettings F : serverCodePage set to IBM-1047 649
(default)
BPXF024I (FTP06004) ZosSettings F : -> set(mode=binary)
BPXF024I (FTP06004) ZosSettings F : <- set()
BPXF024I (FTP06004) ZosSettings F : -> set(conddisp=catlg)
BPXF024I (FTP06004) ZosSettings F : <- set()
BPXF024I (FTP06004) ZosSettings F : -> set(overflow=wrap)
BPXF024I (FTP06004) ZosSettings F : <- set()
BPXF024I (FTP06004) ZosSettings F : -> set(linerule=flexible)
BPXF024I (FTP06004) ZosSettings F : <- set()
BPXF024I (FTP06004) ZosSettings F : -> parseOptionString(mode=text,lre
658
cl=200,recfm=fb)
BPXF024I (FTP06004) ZosSettings F : -> parseAndSetOption(mode=text)
BPXF024I (FTP06004) ZosSettings F : -> set(mode=text)
BPXF024I (FTP06004) ZosSettings F : <- set()
BPXF024I (FTP06004) ZosSettings F : <- parseAndSetOption()
BPXF024I (FTP06004) ZosSettings F : -> parseAndSetOption(lrecl=200)
BPXF024I (FTP06004) ZosSettings F : -> set(lrecl=200)
BPXF024I (FTP06004) ZosExitInterface F : -> ZosExitInterface()
BPXF024I (FTP06004) ZosSettings F : -> ZosSettings()
BPXF024I (FTP06004) Co:Z sftp-server version: 1.5.0 (5.0p1) 667
2009-11-16
BPXF024I (FTP06004) Copyright (C) Dovetailed Technologies, LLC. 2008.
668
All rights reserved.
BPXF024I (FTP06004) ZosSettings F : clientCodePage set to ISO8859-1 669
(default)
BPXF024I (FTP06004) ZosSettings F : serverCodePage set to IBM-1047 670
(default)
BPXF024I (FTP06004) ZosSettings F : -> set(mode=binary)
BPXF024I (FTP06004) ZosSettings F : <- set()
BPXF024I (FTP06004) ZosSettings F : -> set(conddisp=catlg)
BPXF024I (FTP06004) ZosSettings F : <- set()


At this point, the client gets disconnected and the trace stops
coz
Posts: 392
Joined: Fri Jul 30, 2004 5:29 pm

Post by coz »

Right, you've encountered a bug that was fixed in release 1.6.1. You should upgrade to the latest released toolkit (version 1.7.8)
LeonBylsma
Posts: 22
Joined: Thu Apr 16, 2009 8:26 am

Post by LeonBylsma »

Thank you for the info. We now have the latest release installed on our test system and I tried to use the multiple options and it seems to work just fine :-)

Regards

Leon

PS!!! Thanks for the great support
Post Reply