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
Issue with coz sftp
Re: Issue with coz sftp
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
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