We have a number of standard FTP scripts that run as part of our batch processing. We have been asked to send these over SSH.
I have a few questions:
Whats' the difference/benefit of running SFTP over SSL?
Secondly, is SFTP easy to setup and what do I need to do?
All our current FTP processes work as follows:
Source member FTPDATA/FTPDEVSND1
If coding from a command line FTP would normally be coded using "ftp -s scriptfile hostname" or if it's sftp it becomes "sftp -o ssh_stuff -b scriptname hostname". Using switches isn't possible on the above mentioned code.
Any help would be appreciated.
I have a few questions:
Whats' the difference/benefit of running SFTP over SSL?
Secondly, is SFTP easy to setup and what do I need to do?
All our current FTP processes work as follows:
Code:
/* Override the OUTPUT file to the variable &OUTFILE */
OVRDBF FILE(OUTPUT) TOFILE(&LIBRARY/FTPOUT) +
MBR(&INFILE)
/* Override the INPUT file to the variable &INFILE */
OVRDBF FILE(INPUT) TOFILE(&LIBRARY/FTPDATA) +
MBR(&INFILE)
/* Start the TCP/IP FTP File Transfer */
STRTCPFTP RMTSYS(&HOST)
Code:
*** ***** sendpasv binary quote time 900 999999 put blbsavlib/savedy1 blbsavlib/savedy1 cd blbsavlib dir close quit
If coding from a command line FTP would normally be coded using "ftp -s scriptfile hostname" or if it's sftp it becomes "sftp -o ssh_stuff -b scriptname hostname". Using switches isn't possible on the above mentioned code.
Any help would be appreciated.




Comment