IBM Support

IBM AIX: Gather sshd server debug logs

How To


Summary

This document describes how to configure sshd and syslog on AIX® to gather debug data necessary to diagnose sshd server problems.

Steps

All of these steps are performed on the sshd server, except possibly for step 6.
1. Add this line to the /etc/syslog.conf file.
auth.debug /tmp/sshd.log
2. Create the syslog output file.
rm -f /tmp/sshd.log
touch /tmp/sshd.log
3. Refresh syslogd for the change to take effect.
refresh -s syslogd
4. Edit the /etc/ssh/sshd_config file to add or modify the LogLevel option to use the DEBUG3 logging level.
LogLevel DEBUG3
5. Stop and restart sshd for the change to take effect. This does not affect existing ssh sessions.
stopsrc -s sshd
startsrc -s sshd
6. Reproduce the problem.
7. Disable sshd syslog logging by commenting out or removing the syslog.conf line added in step 1.
8. Refresh syslogd for the change to take effect.
refresh -s syslogd
9. If desired, change the LogLevel option in sshd_config back to its previous state, and stop and restart sshd for the change to take effect.
stopsrc -s sshd
startsrc -s sshd
10. Upload the /tmp/sshd.log file to the case.

Additional Information

SUPPORT:

If the instructions in this document do not lead to resolution of the problem, follow these instructions to open a case. The product must be under warranty or have an active and valid support contract.

a. Document or take screen captures of all symptoms, errors, or messages.

b. Capture any logs or data relevant to the issue.

c. Contact IBM® to open a case.

-For electronic support, visit the IBM Support Community:
https://www.ibm.com/mysupport
-If you require telephone support, visit this web page:
https://www.ibm.com/planetwide/

d. Provide a detailed description of the issue and a reference to this technote.

e. Upload all of the details and data to the case.

-You can attach files to the case in the IBM Support Community, or
-Upload data to IBM test case server analysis at this URL:

http://www.ibm.com/support/docview.wss?uid=ibm10733581

f. Click here to submit feedback for this document.

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB08","label":"Cognitive Systems"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG10","label":"AIX"},"ARM Category":[{"code":"a8m0z000000cvwrAAA","label":"Communication Applications"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]

Document Information

Modified date:
02 April 2024

UID

ibm17145760