IBM Support

AIX X11: How to enable X11 forwarding with SSH

Question & Answer


Question

How do I enable X11 forwarding with SSH?

Answer

The example in this document uses common third-party applications.  The non-IBM product examples are provided for convenience only.  IBM does not endorse, or support the third-party applications.

Software Requirements:

To set up X11Forwarding from a Microsoft Windows client, the following software is required.

1. Xserver Software

2. Terminal Emulator

3. OpenSSH and OpenSSL Software
4. X11 Fonts

CONFIGURATION STEPS:
To configure the AIX Server:
1) Enable X11Forwarding in /etc/ssh/sshd_config and restart sshd.

#vi /etc/ssh/sshd_config
   Find X11Forwarding and make sure it is uncommented, and set to "yes".
Example: 
X11Forwarding yes
 
2) Stop and restart the SSH daemon:
#stopsrc –s sshd
#startsrc –s sshd


To configure the Microsoft Windows Client:
3) Install, and start the Xserver and PuTTY software on the PC.
Example:







4) Start, or restart the PC Xserver (Xming).
Example: 

xlaunch
xlaunch-1
xlaunch-2
** Optional: Add the hostname of the AIX system that provides the font server:
xlaunch-3
** You can save this session for reuse.
xlaunch-4

5) Configure and start the PC terminal emulator (PuTTY)
Example: 
putty-1

putty-2

6) Open the session, and log in.

7) Check the DISPLAY. 
If the X11 forwarding is enabled, the DISPLAY is automatically set to localhost:n
# echo $DISPLAY
   localhost:10.0
8) Start an X11 client (For example, xclock)
#xclock &


Note: If this user (userA) calls su - userB, extra steps are required to use the same Xserver.
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

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG10","label":"AIX"},"Component":"X11 SSH","Platform":[{"code":"PF002","label":"AIX"}],"Version":"6.1;7.1;7.2","Edition":"Standard","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]

Document Information

Modified date:
05 June 2021

UID

isg3T1012927