Troubleshooting
Problem
This document describes how to redirect SFTP, SSH, or SCP verbose output to a file.
Resolving The Problem
This document describes how 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 |
[{"Product":{"code":"SWG60","label":"IBM i"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"Communications-TCP","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"Version Independent","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]
Historical Number
599741764
Was this topic helpful?
Document Information
Modified date:
18 December 2019
UID
nas8N1011526