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.
sftp-server.rc multiple options
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:
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.
If not, in your sftp-server.rc:
Code: Select all
export COZ_LOG=F
-
- Posts: 22
- Joined: Thu Apr 16, 2009 8:26 am
result of debug
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
#! /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
-
- Posts: 22
- Joined: Thu Apr 16, 2009 8:26 am