Review https://www.ibm.com/support/pages/redirecting-secure-ftp-sftp-verbose-output-file



The job can submit as the user ID for which the key is assigned, and specify -vvv parameter to redirect SFTP, SSH, or SCP verbose output to a file, and some clients may have a need to do this. The verbose output in the file can be analyzed to debug a problem or it can be parsed by a program. The sequence of steps that can be used to redirect SFTP verbose output to a file are as follows:
o
Create the IFS directory where the verbose output file will reside:

MKDIR DIR('/SFTP_Logs')
o
Create the text file that the verbose output will be redirected to:

QSH CMD('/QOpenSys/usr/bin/touch /SFTP_Logs/verbose.txt')
o
Use the -vvv option to redirect the SFTP output to the verbose.txt file:

sftp -vvv someuser@somehost > /SFTP_Logs/verbose.txt 2>&1

Note: The standard error (2) and standard output (1) file descriptions were used to redirect the SFTP verbose output to a file. Verbose output for the SSH and SCP utilities can also be redirected to a file. The redirection of verbose output to a file can occur interactively within the PASE or QSHELL environments. The redirection of verbose output can also be done through a batch process.



-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Greg Wilburn
Sent: Tuesday, July 12, 2022 10:46 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: [External] RE: Batch SFTP fingerprint



[WARNING]: External Email



I have to submit the job as the user ID for which the key is assigned.

This thread ...


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

This mailing list archive is Copyright 1997-2026 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.