FW: Need helps on sftp without password

"Sandra Kwak" <[email protected]>
Newsgroups gmane.os.openbsd.www
Message-ID <385E2C88995A714F973E53D1826C5FDD03018137@hkexch2k3.hankooktireusa.local>
Dear Sir,

We're having problem when we setup sftp automatic transmission script from out
HP-UX server.

When we manually transfer files to other server, we have been using sftp
${USER}@12.96.58.133 <mailto:ID}@12.96.58.133>  entering password and ftp
commands.

But now we really want to use one command line as below to complete files
transfer without any human interaction, prompting for password but everytime
we get error message when we run the command.   Is there any required setup to
run automatic batch processing without password prompt?   Please advise me.

sftp -b param_file BatchMode='yes'  ${USER}@12.96.58.133
<mailto:${USER}@12.96.58.133>

And below scripts are in param_file.

mput *.zip
mget *resp.zip
mdelete *resp.zip
bye

Error message:

Permission denied (publickey,password,keyboard-interactive,hostbased).
Connection closed

Thanks,
Sandra
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.