Server with COZSFTP and z/OS Client w/o COSZSFTP

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
demyers1
Posts: 7
Joined: Thu Nov 04, 2021 10:18 pm

Server with COZSFTP and z/OS Client w/o COSZSFTP

Post by demyers1 »

Newbie question.
Can I directly sftp an MVS dataset from a client that is using z/OS Open/sFTP to an MVS dataset on a Server that is using z/OS COZsFTP ?

Example?

Thanks,
Dave
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Re: Server with COZSFTP and z/OS Client w/o COSZSFTP

Post by dovetail »

It depends on what you mean.

A remote SSH/SFTP client can use Co:Z SFTP Server to read and write data sets on the *server*.

Therefore an IBM z/OS OpenSSH sftp client can connect to Co:Z SFTP server and read and write datasets on the server, but the IBM sftp client cannot read or write datasets on the client system.
demyers1
Posts: 7
Joined: Thu Nov 04, 2021 10:18 pm

Re: Server with COZSFTP and z/OS Client w/o COSZSFTP

Post by demyers1 »

I wasn't clear on my question.

The Open/sftp can only ftp from/to a Unix file on USS....but COZsftp can ftp directly to an MVS dataset (under the covers it pipes the data through USS and into an MVS dataset).

So my question is....does that "direct to MVS" sftp required that both ends are running the COZsftp ?? Or can the Server be COZsFTP and the client be Openssh ??

Looking for examples of that, if it's possible....

Thanks,
Dave
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Re: Server with COZSFTP and z/OS Client w/o COSZSFTP

Post by dovetail »

The side that is running Co:Z SFTP can directly read and write z/OS data sets, the side that is running IBM sftp cannot.

So a client running IBM sftp:

Code: Select all

zos> sftp  myco.com
sftp> ls /+recfm=fb,lrecl=80,space=cyl.2.1   # this works if server is running Co:Z SFTP
sftp> put my.zfs.file  //HLQ.MY.DSN
demyers1
Posts: 7
Joined: Thu Nov 04, 2021 10:18 pm

Re: Server with COZSFTP and z/OS Client w/o COSZSFTP

Post by demyers1 »

Thanks!
Post Reply