IBM Support

X connection to localhost:10.0 broken errors in X11Fowarded SSH session

Question & Answer


Question

Why does this error occur when I invoke xclock in an SSH session?
 "X connection to localhost:10.0 broken (explicit kill or server shutdown)"

Answer

The error message indicates there is no Xserver available to display the X11 client.

  • An Xserver must be running on the remote system so SSH can forward the X11 packets.
  • You must enable X11 forwarding in your SSH client and the AIX SSHD server.
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

Note, you will need to stop and restart sshd to load any changes.
# stoprc -s sshd
# startsrc -s sshd

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

Document Information

More support for:
AIX

Software version:
All Versions

Operating system(s):
AIX

Document number:
670385

Modified date:
14 November 2019

UID

isg3T1011702

Manage My Notification Subscriptions