× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I have been using FileZilla (groan) for some time to transfer some files. I
have been moving toward using sftp. There is no certificate involved. First,
the public key/private key pair must be created using keygen. Then, get the
public key to the other site.

When I communicate with the remote site using FileZilla (groan) a user name and
password are used for validation. However, with sftp under PASE, validation is
done differently. An entry is made to .ssh/known_hosts and that is used to
validate your session. The site I send data to changes that information at
intervals. There are several ways to get around this. First, is to connect
like this:

sftp -o STRICTHOSTKEYCHECKING=no user@xxxxxxxx

The above option will replace, blindly, the entry in the .ssh/known_hosts file. I am thinking of a better method, which would involve saving the old entry and
comparing the new one. Have not got there as yet. If that option is left off
and the remote site has changed then the sftp script will fail.

Scott Klement wrote an excellent article in System i Network, title " Error
Handling in SFTP Scripts". He points out at a PTF is needed to enable a status
code to be returned from sftp to a calling CL program. The article has several
good examples.


HTH

John McKee
Quoting Dave Odom <Dave.Odom@xxxxxxxxxxxx>:

Scott, and other gurus,

Well, we've had some discussion with Wells Fargo and as much as they support FTP/S, they say, in their experience with i shops, it is better to use SFTP. So, the bottom line question is, "How do I do it"... using a userid and password and no certificate, via a REXX program I'll schedule to run, in batch, at a certain time each day, without using any Windoz client software or other interactive software?

When I asked back in August about FTP/S vs. SFTP, someone questioned why SFTP would only be used with a userid and password that has to be changed every 60 days and not with a certificate. The answer is: Because that's the way Wells Fargo wants to do it and that's their system.

I've already created a REXX program to take our bank draft file and put a Wells Fargo specifically formatted first row in the file I'm going to send, but now I need to expand my REXX EXEC to call SFTP and send the file.

Thanks in advance for your help,

Dave
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.






As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.