Midrange News for the IBM i Community


Posted by: Chris Proctor
Programmer Analyst
Columbia Sports Company
Portland, OR
Using a passphrase in a public key in batch....
has no ratings.
Published: 10 Aug 2012
Revised: 23 Jan 2013 - 1852 days ago
Last viewed on: 18 Feb 2018 (3157 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 passphrase in a public key in batch.... Published by: Chris Proctor on 10 Aug 2012 view comments(4)

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

COMMENTS

(Sign in to Post a Comment)
Posted by: BrianR
Premium member *
Green Bay, WI
Comment on: Using a passphrase in a public key in batch....
Posted: 5 years 6 months 11 days 1 hours 31 minutes ago

Let me refer you again to Scott Klement's presentation and read the part about the EXPECT utility which emulates a Unix terminal in batch (starts on page 35).  That may or may not work depending on your requirements, but it's worth a look.

Posted by: chrisp
Premium member *
Portland, OR
Comment on: Using a passphrase in a public key in batch....
Posted: 5 years 6 months 11 days 1 hours 12 minutes ago

Hi Brian. Yeah, I looked at it, but don't think it will work for us. I also tried installing it and it had numerous "file or directory in the path name does not exist" errors.

Posted by: DaleB
Premium member *
Reading, PA
Comment on: Using a passphrase in a public key in batch....
Posted: 5 years 6 months 8 days 7 hours 27 minutes ago

I'm curious, did you try it in the !--script-- file (-b xxx)? What happened?

Posted by: ssonntag
Premium member *
Port Washington WI
Comment on: Using a passphrase in a public key in batch....
Posted: 5 years 6 months 1 days 1 hours 23 minutes ago
Edited: Mon, 20 Aug, 2012 at 17:03:28 (2008 days ago)

Brian,

 

I too just went through the process of setting up sFTP and found that trying to use a passphrase was too much of a hassle and really does provide that extra level of security if someone has to run the process from a terminal session.

The extra time and effort of having to install and use EXPECT in the !--script-- didn't make sense for a process that is already secure.

Unless they really insist, I would not go through the effort.

 

Scott Sonntag