Midrange News for the IBM i Community


Posted by: Chris Proctor
Programmer Analyst
Columbia Sports Company
Portland, OR
Any SFTP gurus out there?
has no ratings.
Published: 31 Jul 2012
Revised: 23 Jan 2013 - 2187 days ago
Last viewed on: 18 Jan 2019 (4243 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.

Any SFTP gurus out there? Published by: Chris Proctor on 31 Jul 2012 view comments(7)

I'm hoping there might be an SFTP guru out there to help me figure this out! Undecided

We have an old FTP process that signed on to the bank and performed a GET, writing a single file to the IFS. Now, the bank has upgrade to SFTP and we no longer have access, so I've been asked to make it work! I have no experience with SFTP, so hopefully someone can tell me what I need to do to resolve my issues.

Here's what I've done:

  1. Called QP2TERM
  2. Set up my folders: /home/CPROCTOR/.ssh
  3. Generated the keys: ssh-keygen -t dsa -N "elephant" (the bank wanted a passphrase, and from what I could tell, the last parm is the passphrase)
  4. Sent the bank the public key: id_rsa.pub
  5. They installed the key on their system

Once the setup was done, I tried to access the bank via QP2TERM with the following command: sftp MNOT-00366@www.bankname.com  (MNOT-000366 was a "test userID" that the bank provided to us.

When I ran the above command, I got the following error msg:

Host key verification failed.

First of all, I'm not sure where the passphrase comes into play. I thought that when I typed the "sftp" command, I'd be prompted for the passphrase, but that didn't happen.

I realize that I may have more screwed up than I'm aware of, so any insight would be greatly appreciated.

 

Thanks!

Chris

 

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

COMMENTS