The ssh2 application can be debugged by using the -d option. The scp2 and sftp2 applications can be debugged by using -D option.
Debug level 4 is usually sufficient. For more detailed information, debug level 7 can be used.
Debugging Interactive Sessions
When using interactive sessions from OMVS, Telnet, or SSH shells, debug information is displayed on screen. Debug option is entered to the used command, for example:
ssh2 -d 4 user@server
or
sftp2 -D 7 user@server
Debugging Non-Interactive Sessions
Similar options can be entered also to JCLs. When running clients from JCL, debug information is stored to a defined STDERR file.
Reduce Secure Shell risk. Get to know the NIST 7966.
The NISTIR 7966 guideline from the Computer Security Division of NIST is a direct call to action for organizations regardless of industry and is a mandate for the US Federal government. Download now
ISACA Practitioner Guide for SSH
With contributions from practitioners, specialists and SSH.COM experts, the ISACA “SSH: Practitioner Considerations” guide is vital best practice from the compliance and audit community. Download now