The sftp command, by design, does not allow a password to be specified anywhere except from an interactive prompt. You will probably have to use authentication keys instead. There are many places on the web that discuss how to set up the keys. One example is here:
http://www.sshkeychain.org/mirrors/SSH-with-Keys-HOWTO/ but I haven't read that one thoroughly, so I don't guarantee its accuracy. Look around, or ask someone you work with who may have done it. Bill On Wed, 15 Jul 2009 12:59:28 -0400, Leonard Sasso wrote: >The external site (CMS) has informed us they don't require any >authentication of keys (public and private). > >Thank You. > >Len Sasso > > >On Wed, 15 Jul 2009 09:52:17 -0400, Leonard Sasso wrote: > >>I have a Mainframe Batch Job executing the BPXBATCH program to invoke >SFTP >>to transfer a file to an external site. >> >>The external site does not require any Authentication. >> >>How do I Disable the Publickey Authentication and only use the Password? >> >>Below are the Execution JCL, Configuration file and Job Output. >> >(rest of message deleted) > >Whoever wrote the JCL seems to think that the batchfile indicated by the >"-b" >option of sftp can contain a userid and password, but it can't. I am >puzzled by >your statement that the external site doesn't require any authentication. >Maybe someone at the external site can tell you what that means. > >Bill > ---------------------------------------------------------------------- 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

