SFTP in batch mode

120 pts.
Tags:
AS/400
AS/400 SFTP
RPG Batch Mode
SFTP
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

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following