iSeries SFTP

145 pts.
Tags:
iSeries FTP
iSeries SFTP
Secure FTP
SFTP
How do you setup for secured FTP? Can the process be automated like normal FTP?

Answer Wiki

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

Hi,

Here’s a great article by Scott Klement that should get you up and running

<a href=”http://systeminetwork.com/article/ssh-scp-and-sftp-tools-openssh”>The SSH, SCP, and SFTP Tools from OpenSSH</a>

Note: for automating with scripts

<b>SFTP does not use OVRDBF for scripting. Instead, if you want to use SFTP with a script, you have to put the script in an IFS file and run it with the -b parameter to SFTP.</b>

Regards,

Martin Gilbert.

—————————–
The problem is that I need a subscription to view that article. My company is on a budget and not new expenditures are allowed.

—————————–
Gilly,

Might as well put me on the list for sftp. csallee@lfucg.com

Chuck

==========================================================

Although it is common to think of “secure FTP” as being the same as “SFTP”, they are very different. And both of those are very different from “sftp” which is what most comments in this thread are about. (The sftp discussion is <i>probably</i> appropriate. The question doesn’t actually define what is needed.)

“Secure FTP” or FTPS (or FTP/S) refers to running FTP over the Transport Layer Security (TLS) and the Secure Sockets Layer (SSL) cryptographic protocols. Using the “FTP” acronym by itself means that the actual FTP is being run.

“SFTP” is actually Simple File Transfer Protocol, but that definition is fading due to the now widely used but incorrect interpretation as being “Secure File Transfer Protocol” or “SSH File Transfer Protocol”. In this question, SFTP (Simple File Transfer Protocol) can be practically ignored.

“sftp” is SSH File Transfer Protocol, or Secure File Transfer Protocol, but not “Secure FTP” which explicitly uses the separate ‘FTP’ acronym. Using the ‘FTP’ acronym as a separate token implies the FTP protocol which has nothing to do with “sftp”.

In short, when negotiating file transfers nowadays, you can start with an assumption that sftp will be used; but make sure that the other system is using the same definition.

Both sftp and “secure FTP” can be used under i5/OS. They are incompatible with each other and are entirely different protocols. “Secure FTP” uses FTP; sftp does not. They run over different ports. They use different scripts and have different prerequisites.

By recognizing and understanding that there are differences among all of these, it gets easier to sort out all of the various articles around the internet and the Info Center topics. It can seem that some of those contradict others when they may actually be describing different things. Always make sure that you know which topic is being discussed.

Tom

Discuss This Question: 61  Replies

 
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
  • Mitchb
    Martin - your link requires subscription or a loginID to access the content.
    0 pointsBadges:
    report
  • Gilly400
    Hi, Sorry about that - my machine remembers the login for me - didn't realise that it was a subscribers only page. Regards, Martin Gilbert.
    23,730 pointsBadges:
    report
  • Mitchb
    Thanks Martin, but how do I invoke SFTP from an AS/400 command line? The -b parameter is for running on a DOS command prompt is it not? I have tried calling QP2TERM but do not know what to do from there.
    145 pointsBadges:
    report
  • Gilly400
    Hi, I'm assuming you can read the article in the link I posted. You'll need to first follow the steps in the article to create your ssh keys. Once you've done this you should be able to invoke SFTP from the QP2TERM session. If you need to automate it, you can use the QP2SHELL API to run a script from a CL program - using the -b parameter (like DOS). Regards, Martin Gilbert.
    23,730 pointsBadges:
    report
  • Mitchb
    Martin, I was not able to access that article via the site you mentioned. I registered myself but still it woul dnot let me access it. Do you haveanother means of relaying that article to me. Thanks
    145 pointsBadges:
    report
  • Gilly400
    Hi, I could try an e-mail it to you. Can you post an email address? Something like fred-AT-yourmail-DOT-com so the spam bots don't pick it up.... Regards, Martin Gilbert.
    23,730 pointsBadges:
    report
  • Mitchb
    Thanks Gilly, my email is mitchell-dot-bramston-at-gmail-dot-com
    145 pointsBadges:
    report
  • RVP400
    Gilly, I have the same problem as martin: no access to Scott's article. Can you please email it to rafael-dot-vp-at-leaseplan-dot-pt Thanks a million!
    270 pointsBadges:
    report
  • Chandasuman17
    Hi Gilly, I am unable to access the link you mentioned as it requires registration. My question is that I need to use SFTP on the iseries to receive files from a mainframe application on the as/400. Also, I need to transfer files using SFTP from the As/400 back to the mainframe application. I need to do this via an automated script. Using FTP, i am aware that we need the FTP script in an INPUT file and then do a OVRDBF and the FTP RMTSYS(...) command to send the mail in an automated manner. I am not sure how / what changes are needed for doing the same thing via SFTP on the As/400..... Another query : With the FTP, we had the QUOTE command to invoke a program on the remote server. I am wondering whether the same FTP command or something likewise is availbale using the SFTP..... Please help !!!
    20 pointsBadges:
    report
  • Gilly400
    Hi, I don't mind emailing a copy of the web page, but then I'd need your email address. I'd like to be able to post the whole article here, but I don't have the necessary permission from the magazine. Regards, Martin Gilbert.
    23,730 pointsBadges:
    report
  • Chandasuman17
    Hey Gilly, My email id is : chandasuman-underscore-17-at-rediffmail.com Thanks a ton!!!
    20 pointsBadges:
    report
  • 65GTO
    I have SFTP automated and running on my AS/400. It gets credit card transactions from a bank and then automatically posts them to my Cash Receipts system. It took me about a week to set this up. I would be happy to provide design/assistence/programming and share my code for a fee. The process is complicated and time consuming. I use Scott's article but ran into several issues before I could get it to work.
    335 pointsBadges:
    report
  • James12
    hi could somebody please email me the Scott Klement article to jamesjr-at-tpg-dot-com-dot-au
    10 pointsBadges:
    report
  • Gilly400
    Hi, It's on it's way. Regards, Martin Gilbert.
    23,730 pointsBadges:
    report
  • Mpeterd03
    Martin, would you send the article to me as well?Thanks!! markd-at-abcfinancial-dot-com
    20 pointsBadges:
    report
  • Gilly400
    On it's way...
    23,730 pointsBadges:
    report
  • MNF123
    Gilly400 - would you be good enough to send me the article as well.....Many thanks Email: mkn_f at hotmail dot com Thanks
    35 pointsBadges:
    report
  • Gilly400
    coming up.
    23,730 pointsBadges:
    report
  • Gee17
    Martin, Could I also get this article emailed to me. gkcombs@gmail.com Thank you very much!
    10 pointsBadges:
    report
  • Gilly400
    Coming your way.
    23,730 pointsBadges:
    report
  • Sapbasisguy
    I think you have a trend going here. Could you please email to cwelch at execpc dot com?
    10 pointsBadges:
    report
  • Gilly400
    On it's way.
    23,730 pointsBadges:
    report
  • Sljvb
    Martin - please add me to the list to receive this article? Thanks, suzyjackso AT aol DOT com
    20 pointsBadges:
    report
  • Davej3x
    Hi Martin, Please would you be so kind - I'd like to see this article to. Many thanks, dave. davej-at-3xsw-dot-co-dot-uk
    10 pointsBadges:
    report
  • Tblomst
    Could you please email the same to tblomst at gmail dot com? Thanks.
    10 pointsBadges:
    report
  • Gilly400
    All on their way.
    23,730 pointsBadges:
    report
  • Theparks1
    Martin any chance you could mail this to me also mike-dot-brough-at-hmv-dot-co-dot-uk. Many Thanks
    10 pointsBadges:
    report
  • Bradders60
    Hi Martin could you please email me this article too please bbradshaw at opal dot co dot uk many thanks
    10 pointsBadges:
    report
  • Jdicken
    Hi Martin! Would you please be so kind as to email this article to me as well? jdicken at ddilink dot com Thank you!
    10 pointsBadges:
    report
  • Dougo
    Martin,
    40 pointsBadges:
    report
  • Dougo
    Martin, I am new to this forum. Aslo having problems getting SFTP to work correctly. Is it possible for you to email me the document also? email address: dpreston-at-btrcorp-dot-com. Thanks much! Doug
    40 pointsBadges:
    report
  • Vivekgawade
    Hi Martin, Could you please email me this article too ? vivekgawade-at-gmail-dot-com many thanks
    20 pointsBadges:
    report
  • Vboy
    Dear Martin, May I have your document about the SFTP? My e-mail address is jasonhkl@gamil.com Thank you.
    10 pointsBadges:
    report
  • USRPRF
    Martin, Need the doc badly. Pls send to (ricer2k at live dot com dot my). Thanks in advance!
    10 pointsBadges:
    report
  • Jeffm
    Martin, Please email article at your convenience to jmessersmith at urmstores dot com. Thanks a bunch
    125 pointsBadges:
    report
  • Berna
    hi Martin, could you send the article? I've searched everywhere on SFTP but no luck :(( my email address: jb70 at hotmail dot com thank you Bern
    10 pointsBadges:
    report
  • Gilly400
    Hi, The mail is on it's way to the previous posters - sorry for the delay. Martin.
    23,730 pointsBadges:
    report
  • Gilly400
    Hi, Unfortunately I'm going to be out of action for a while, so I've now fowarded the mail to the guys at ITKE and asked them to forward it to whoever requests it. Regards, Martin Gilbert.
    23,730 pointsBadges:
    report
  • Swelabada
    Can some body send me the article please... Im stuck up on setting SFTP on iseries...swelabada@gmail.com Thank you
    10 pointsBadges:
    report
  • Dougo
    Martin, Could you send me the article as well? dpreston-AT-btrcorp-dot-com. Thanks much. Doug Preston
    40 pointsBadges:
    report
  • Splat
    Mr. Gilbert, If it wouldn't be too much trouble, I would appreciate it if you could also send me a copy of the article. My e-mail address is atroxdesign~at~swbell~dot~net.
    7,185 pointsBadges:
    report
  • Bayrunner
    Hi Martin, yet another request! I would appreciate it if you could also send me a copy of the article. My e-mail address is funstickuk~at~hotmail~dot~co~dot~uk. Many thanks!
    10 pointsBadges:
    report
  • Ronacsal
    hi martin, could you email the documents to me also.. lascano-DOT-raymond-AT-gmail-DOT-com thanks a lot
    25 pointsBadges:
    report
  • Hurricanehauser
    Martin, When you get a chance, would you please send that to me as well to hurricanehauser-AT-yahoo-DOT-com. Thanks, Jon
    10 pointsBadges:
    report
  • kaf
    Martin, When you get a chance, would you please send that to me as well to kfry@pencor.com Thanks, Kim
    10 pointsBadges:
    report
  • mguehl
    Martin, Would you please send this article to me? maryDOTguehlATsystemaxmfgDOTcom. Thank you!
    15 pointsBadges:
    report
  • Anahr
    Hi, Could you please send this article to me as well? The address is: hristova -dot-a-at-gmail-dot-com Many thanks!! Ana
    10 pointsBadges:
    report
  • Sebullard
    Please email me a copy of Scott's article. Thanks!! Susiebullard@murphybrownllc.com
    10 pointsBadges:
    report
  • Anthonytbarber
    Martin, Please can you send me Scot's acticle. anthonytbarber -at- hotmail -dot- co -dot- uk Thanks Anthony
    10 pointsBadges:
    report
  • Whatis23
    Ok all the requests has made me curious. Please send the article to: macosta17 at juno dot com Thanks
    5,665 pointsBadges:
    report
  • Aspvkp
    Hi, Can some one send me a copy of Scott's article on SFTP to my E-mail ID? ASPVKP@GMAIL.COM
    20 pointsBadges:
    report
  • wpoulin
    Hey guys, you can go directly to Scott Klement's site, No subscription needed, http://www.scottklement.com Also I found the Redpaper "Securing Communications with OpenSSH on IBM i5/OS" even more helpful. Hope this helps, Bill Poulin
    2,480 pointsBadges:
    report
  • Alicsc
    Hi, I also require this document...can you please send me to my email id msali37 AT gmail DOT com I need to connect to other server (not AS/400 ) remote host XXXXX using port 22 from AS/400
    370 pointsBadges:
    report
  • Alicsc
    Hi Martin, I need this document…can you please send to my email id msali37 AT gmail DOT com I need to connect to other server (not AS/400 ) remote host XXXXX using port 22 from AS/400
    370 pointsBadges:
    report
  • Jamesberle
    Hi Martin, I need this document…can you please send to my email id james DOT berlekamp AT gmail DOT com I need to connect to other server (not AS/400) remote host XXXXX using port 22 from AS/400
    10 pointsBadges:
    report
  • JohnsonMumbai
    Hi Martin, Please mail me the document, my email id is johnsonthomasm@hotmail.com. Need it urgently has auditors have raised the red flag as far as ftp is concerned. Many thanks.
    1,160 pointsBadges:
    report
  • Jeffm
    Hi, Looks like you have been swamped with email requests. Can you please send at least one more. Much thanks. Jeff jmessersmith at urmstores dot com Thanks again.
    125 pointsBadges:
    report
  • jdww
    Guess people are still trying to get this to work. Would you mind sending out another copy of the article to jarrolwilliams-at-adt-dot-com
    10 pointsBadges:
    report
  • LoraEstradaNapier
    I would really like to read this article also.  My email address is LNapier-at-comcast-dot-net.  Thanks to Martin or whomever sends it to me! 
    20 pointsBadges:
    report
  • ahartnack
    I also need this article. Can someone E-mail it to me? My E-mail is ahartnack-at-yahoo-dot-com. Muchas gracias.
    10 pointsBadges:
    report
  • Madras
    I need this article can some one email me. Thanks a lot! krishna unserscore srinivas at hotmail.com
    10 pointsBadges:
    report

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