IBM Support

How to collect SSHD debug for X11 Forwarding issues

General Page

This document describes how to collect sshd debug output for analysis in an AIX Support Case


STEPS
1) Verify an"ssh -X" X11 forwarding connection.  
For example,
1)  PuTTY Client: Putty configuration ->
 X11--> X11 Forwarding
  -->Enable X11 Forwarding is enabled
  -->X Display Location value
  -->Remote Authentication Protocol
  Tunnels--> Describe any settings in these fields
2) AIX sshd server process:
The following is configured:
    /etc/ssh/sshd_config : X11Forwarding yes
2) Collect debug information
  
** As root, in an existing "LOGIN SESSION A":
 2A: Start a session log, and restart verbose sshd
       
   stopsrc -s sshd
   cat /etc/ssh/sshd_config > /tmp/X11SSH.server.out
   /usr/sbin/sshd -D -d -d -d  2>&1 | tee -a /tmp/X11SSH.server.out
  
** As the X11 client user, connect to the AIX LPAR, in an X11-forwarded "PUTTY SESSION B":
  2B: Collect user ssh session information, while "LOGIN SESSION A" is still open):
   
   xauth list > /tmp/X11SSH.client.out
   ls -l $HOME/.Xauthority >> /tmp/X11SSH.client.out
   env >> /tmp/X11SSH.client.out
   id >> /tmp/X11SSH.client.out
   exit
3.  In the root "LOGIN SESSION A":
  startsrc -s sshd #restarts sshd normally
4.  Collect the debug files and upload to the testcase server for your case
     (See the document "SUPPORT" section for upload instructions)   
 cd /tmp
   tar -cvf Your_Case_Number.X11SSH.debug.tar X11SSH.server.out X11SSH.client.out
SUPPORT

If you require more assistance, use the following step-by-step instructions to contact IBM to open a case for software with an active and valid support contract.  

1.  Document (or collect screen captures of) all symptoms, errors, and messages related to your issue.

2.  Capture any logs or data relevant to the situation.

3.  Contact IBM to open a case:

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

4.  Provide a clear, concise description of the issue.

5.  If the system is accessible, collect a system snap, and upload all of the details and data for your case.

 - For guidance, see: Working with IBM AIX Support: Collecting snap data

Related Information

[{"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":"a8m0z000000cw2mAAA","label":"Desktop-\u003EX11 Clients"}],"ARM Case Number":"","Platform":[{"code":"PF002","label":"AIX"}],"Version":"All Versions"}]

Document Information

Modified date:
16 March 2022

UID

ibm10880913