Newbie question #2: sftp server setup

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
DClassic53
Posts: 39
Joined: Wed Feb 11, 2009 10:23 am

Newbie question #2: sftp server setup

Post by DClassic53 »

I'm now getting ready to test the server side of the Co:Z SFTP product. When I look at my current sshd_config file in edit mode under ISHELL, it looks like there are blanks between the 3 character strings on the line:

Subsystem sftp /usr/lib/ssh/sftp-server

In browse mode those 2 spaces show up as periods. They are x'05'.

Subsystem.sftp./usr/lib/ssh/sftp-server

Your current Co:Z SFTP with Dataset Support User's Guide (pg. 3) implies that they are blanks. What should they be?
David
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

A x'05' is an EBCDIC tab, which is also considered "white space"

You may use any combination of spaces and tabs.
DClassic53
Posts: 39
Joined: Wed Feb 11, 2009 10:23 am

Post by DClassic53 »

OK. I have modified sshd_config per pg 3 and also copied sftp-server.rc into /etc/ssh/
I then modified /etc/ssh/sftp-server.rc to have the following in it.

USE_COZ_SFTP=true

Shouldn't that make the default sftp server the Co:Z version on that z/OS image?
David
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

Yes, that should make it the default.

Did you restart or reinitialize SSHD?

See the last step here: http://dovetail.com/docs/sftp/install.html
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

Also, one way to check to see if you are using the Co:Z server is to connect with a client and issue:

> ls /+

This will display the Co:Z sftp server settings, or give you an error if you aren't connected to the Co:Z SFTP server.
DClassic53
Posts: 39
Joined: Wed Feb 11, 2009 10:23 am

Post by DClassic53 »

Yes, restart of the server was issued ...

I'm getting an error when I try the ls /+ command.

sftp> ls /+
[00389] Couldn't stat remote file: No such file or directory
[00389] Can't ls: "/+" not found
David
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

Yeah, it doesn't look like you are running the Co:Z server.

Just a thought: did you make /etc/ssh/sftp-server.rc readable and executable?

chmod 755 /etc/ssh/sftp-server.rc
DClassic53
Posts: 39
Joined: Wed Feb 11, 2009 10:23 am

Post by DClassic53 »

For some reason I had /etc/ssh/sftp-server.rc setting with 700 instead of 755 :shock: . Things seems better now :D .

Thanks for the assistance!
David
Post Reply