Midrange News for the IBM i Community

Posted by: Chris Proctor
Programmer Analyst
Columbia Sports Company
Portland, OR
Using a password with SFTP?
has no ratings.
Published: 20 Apr 2016
Revised: 20 Apr 2016 - 966 days ago
Last viewed on: 11 Dec 2018 (1668 views) 

Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.

Using a password with SFTP? Published by: Chris Proctor on 20 Apr 2016 view comments(1)

Return to midrangenews.com home page.
Sort Ascend | Descend


(Sign in to Post a Comment)
Posted by: chrisp
Premium member *
Portland, OR
Comment on: Using a password with SFTP?
Posted: 2 years 7 months 24 days 2 hours 57 minutes ago

Disregard this question. I found the following info:

Using password authentication for batch sftp processes is a bad practice, and violates good security practices.  Best thing to do is to talk to the person managing the sftp server, and ask them to switch to the correct authentication method for batch , which is public key.

So when they tell you "no", your best alternative is to use Expect.  We use this with backward, uninformed trading partners who can't be bothered to implement public key authentication for sftp and insist we use password authentication.

Expect lets you perform interactive "conversations" in batch.

Thanks, anyway!! wink