It depends on what you mean by "batch". You can absolutely get sftp to work in a z/OS batch job using "SSH_ASK_PASS". I provided an example earlier in this thread, and others have posted similar examples.
On Fri, Jul 17, 2009 at 10:36 AM, Mark Post<[email protected]> wrote: >>>> On 7/16/2009 at 4:32 PM, Leonard Sasso <[email protected]> wrote: > -snip- >> Do you know how to Disable Publickey Authentication using the command line >> options? > > That's not your problem. Having publickey auth available doesn't interfere > with using passwords. As someone else noted a day or two ago, your problem > is that password authentication cannot be done in batch, only in interactive > mode. The man page for sftp confirms this. If you want to run in batch, you > _must_ use publickey authentication. > > > Mark Post > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: GET IBM-MAIN INFO > Search the archives at http://bama.ua.edu/archives/ibm-main.html > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

