SFTP Password Configuration

A discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
fmcdaid2
Posts: 2
Joined: Thu Apr 29, 2021 4:56 am

SFTP Password Configuration

Post by fmcdaid2 » Fri Apr 30, 2021 5:13 am

Hi all,

We would like to use a single PDS member to hold both user and password with, something like the following format:

host=mymachine
user=myuser
pwdsn=mypassword
port=myport

With current testing we are using 2 separate PDS members, ie:

UTTIH.SFTPQ.USER.PDSDATA7(USER)
host=mymachine
user=myuser
pwdsn="UTTIH.SFTPQ.USER.PDSDATA7(PASSWORD)"
port=myport

Is it possible to just have one member?

dovetail
Site Admin
Posts: 1978
Joined: Thu Jul 29, 2004 12:12 pm

Re: SFTP Password Configuration

Post by dovetail » Tue May 04, 2021 3:37 pm

It is not possible to put the actual SFTP password inline in the script that invokes Co:Z SFTP.

Background:
Co:Z SFTP uses z/OS OpenSSH for the low level connection. OpenSSH does not provide a mechanism for the password to be provided by a parameter. Therefore, the password must be put into a data set by itself so that z/OS OpenSSH can obtain it indirectly through an SSH_ASKPASS program mechanism.

For more information on client SSH authentication mechanism, see:
https://dovetail.com/docs/sftp/auth.html

Post Reply