Issue with coz sftp

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
tejas
Posts: 1
Joined: Tue Jun 17, 2014 7:00 am

Issue with coz sftp

Post by tejas »

We are trying to establish a SFTP connection using only Password authentication without key authentication. I turned off public key authentication by giving PubKeyAuthentication=no option
I used the following lines for getting the password.

export PASSWD_DSN='MTSD.PUSRB.N.NAP.SFTP.JCL(CODE)'
export SSH_ASKPASS=read_passwd_dsn.sh
export DISPLAY=none

The password is available in dataset MTSD.PUSRB.N.NAP.SFTP.JCL, in member CODE.

I see following errors when I execute the JCL.

debug1: read_passphrase: can't open /dev/tty: EDC5128I No such device. (errno2=0x056201A9)

FOTS1960 ssh_askpass: exec(read_passwd_dsn.sh): EDC5129I No such file or directory. (errno2=0x053B006C)

What is the issue with this ,kindly let m,e know
dovetail
Site Admin
Posts: 2025
Joined: Thu Jul 29, 2004 12:12 pm

Re: Issue with coz sftp

Post by dovetail »

To use SSH_ASKPASS, you have to make sure that cozsftp is run in batch mode (-b option).

If you use our sample JCL, everything should be set correctly.

Even better is to use our sample PROC and scripts:

http://dovetail.com/docs/sftp/client.ht ... batch_samp
Post Reply