120 pts.
 SFTP in batch mode
Hi

How can we perform SFTP in batch mode?

Is it possible to perform SFTP without using public and private keys?

It would be of great help if provided some sample code to refer also.

 

Thanks,

Vivek



Software/Hardware used:
ASKED: February 18, 2011  2:31 PM
UPDATED: February 18, 2011  7:26 PM

Answer Wiki:
VivekSharma, Scott Klement offers some excellent info on SFTP. Check out http://www.scottklement.com. Also see a IBM Redpaper titled Securing Communications with OpenSSH on IBM i5/OS. With these 2 resources I was able to setup SFTP between our IBM i and a Unix system. There is a free software tool called Expect that Scott talks about that can be used to send a password instead of using public/private keys. I have SFTP running in a batch mode, but was not able to get Expect to work for me. It was easier to exchange public/private keys. Hope thsi helps, Bill Poulin
Last Wiki Answer Submitted:  February 18, 2011  7:20 pm  by  wpoulin   2,480 pts.
All Answer Wiki Contributors:  wpoulin   2,480 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

I haven’t had to do that yet. However, you might find searches relating to “expect” scripts for sftp to give a lot information. Here are a couple threads that might be useful — Re: sFTP – the sequel and Re: SFTP from iSeries failes to connect while Filezilla works fine.

Note the references there to passwords being used in place of public/private keys.

Tom

 110,115 pts.