X11 forwarding problem between 2 RHEL4 machines with SSH
Already configured the following on both machines under /etc/ssh
Under sshd_config:
UsePAM no
AllowTcpForwarding yes
Under ssh_config:
ForwardAgent yes
ForwardX11 yes
ForwardX11Trusted yes
-----------------------------
Using windows with putty and Xwin32, i am able to run X apps from my linux machines after exporting the correct DISPLAY:
e.g. //THE FOLLOWING WORKS
export DISPLAY=<windows_machine_ip>:0
xclock &
When doing above on a linux machine, I keep getting the following errors:
"Error: Can't open display: 10.83.75.183:0.0Error: Can't open display: 10.83.75.183:0.0"
------------------------------
Solution:
------------------------------
Found a workaround for this problem. Seems like this problem is only in RHEL 4 and not RHEL 3.
nothing wrong with the ssh settings in /etc/ssh...
compare working RHEL3 setup and found that the config files are identical.
found that the following options in SSH will solve our remote X display problem in RHEL4
# ssh -X -A -l <username> <ipaddress>
-X Enables X11 forwarding.
-A Enables forwarding of the authentication agent connection.
# xclock &
Tested on older systems running RHEL 3, like the earlier version of OPEN-SSH does not require the -A and -X options for X11 forwarding to work.
openssh-server-3.6.1p2-33.30.3 ==> on RHEL3
openssh-server-3.9p1-8.RHEL4.9 ==> on RHEL4
I AM JUST GUESSING VIA THE ABOVE EXPERIMENTS, ANYONE KNOWS THE REASON BEHIND THIS?
------------------------------