Xmanager Forum

IT Infrastructure Services Specialist

Last post: Tuesday, May 17, 2011 2:20 AM by Support, 3 reply

Monday, May 16, 2011 9:39 AM - Ahmed Kobaissi

IT Infrastructure Services Specialist

An error message appears when I try to connect to 7 different AIX 6.1 servers
with Xstart through SSH protocol (Port: 22) & with "Display: /usr/bin/X11/xterm -ls -display $DISPLAY". The error message that appeared is:
"The X11 forwarding request was rejected!
To solve this problem, please turn on the X11 forwarding feature of the remote SSH server"
I've enabled the "X11Forwarding yes" in the "sshd_config" under directory "/etc/ssh" and after that I restarted the SSH server using commands "stopsrc -g ssh & startsrc -g ssh" and closed the Xstart and re-opened it just in case, but the same problem appeared and below is the "Xrcmd: Reply messages" for the error.
[18:27:22] Connecting to ''...
[18:27:22] Connected.
[18:27:22] Version exchange initiated...
[18:27:22] server: SSH-2.0-OpenSSH_5.4
[18:27:22] client: SSH-2.0-libssh_1.3.5.1 2653 NetSarang Computer, Inc.
[18:27:22] SSH2 is selected.
[18:27:22] Algorithm negotiation initiated...
[18:27:22] key exchange: diffie-hellman-group1-sha1
[18:27:22] host key: ssh-dss
[18:27:22] outgoing encryption: aes128-cbc
[18:27:22] incoming encryption: aes128-cbc
[18:27:22] outgoing mac: hmac-sha1
[18:27:22] incoming mac: hmac-sha1
[18:27:22] outgoing compression: none
[18:27:22] incoming compression: none
[18:27:22] Host authentication initiated...
[18:27:22] Hostkey fingerprint:
[18:27:22] ssh-dsa 1024 e3:ab:9a:dc:55:e6:7e:c4:38:d5:c7:cc:21:ad:74:1d
[18:27:22] Accepted. Verifying host key...
[18:27:22] Verified.
[18:27:22] User authentication initiated...
[18:27:22] Sent user name 'root'.
[18:27:22] Sent password.
[18:27:22] Access granted.
[18:27:22] Sent X11 forwarding request...
[18:27:22] Failed.
Also worthy mentioning that on the previous Saturday morning a network down time took place for about 6 hours, but before this down time happened it used to be working just fine. I contacted our communication department but they ensured that I have full connection from my PC to the server and vise versa. Waiting for your reply. Have a nice day.
Please find attached the 2 "sshd_config" files before & after modification.

Program Ver. : Xmanager 2.x
Connect Method : Xstart connection
Monday, May 16, 2011 11:26 PM - Support

Re: IT Infrastructure Services Specialist

I looked the config file and found a problem. X11Forwarding option is commented out. Please remove the # character in front of the X11Forwarding option. It should look like the this:

X11Forwarding yes

And, restart the SSH server.

Technical Support
Tuesday, May 17, 2011 2:14 AM - Ahmed Kobaissi

Re: IT Infrastructure Services Specialist

Thank you so much for your fast reply and professional assistance, the problem is resolved and it was indeed the # sign next to the X11Forwarding. Thanks you again all. Have a nice day.
Tuesday, May 17, 2011 2:20 AM - Support

Re: IT Infrastructure Services Specialist

I am glad it fixed the problem.

Technical Support