Because of SSH being unstable in operation I upgraded it to the latest packages on RH9 box as follows;
openssh-3.7.1p2-1.i386.rpm openssh-clients-3.7.1p2-1.i386.rpm
openssh-askpass-3.7.1p2-1.i386.rpm
openssh-askpass-gnome-3.7.1p2-1.i386.rpm openssh-server-3.7.1p2-1.i386.rpm
After upgrade
On Gentoo box =========== As USER ***
$ ssh -X [EMAIL PROTECTED] [EMAIL PROTECTED]'s password: -bash-2.05b$ konqueror konqueror: cannot connect to X server
$ ssh -X [EMAIL PROTECTED] [EMAIL PROTECTED]'s password: Last login: Tue Nov 11 19:08:15 2003 from 192.168.0.2 [EMAIL PROTECTED] root]# konqueror konqueror: cannot connect to X server
As ROOT ***
# xhost + 192.168.0.1 xhost: unable to open display ""
# ssh -X [EMAIL PROTECTED] [EMAIL PROTECTED]'s password: Warning: No xauth data; using fake authentication data for X11 forwarding. -bash-2.05b$
# ssh -X [EMAIL PROTECTED] [EMAIL PROTECTED]'s password: Warning: No xauth data; using fake authentication data for X11 forwarding. Last login: Tue Nov 11 19:37:02 2003 from 192.168.0.2
On RH9 box ========= As USER ***
$ ssh -X [EMAIL PROTECTED] [EMAIL PROTECTED]'s password: Last login: Tue Nov 11 18:43:19 2003 [EMAIL PROTECTED] satimis $ konqueror kbuildsycoca running... DirFilterPlugin: New URL : file:/home/satimis DirFilterPlugin: Current URL: ASSERT: "m_widget" in kaction.cpp (2993) ASSERT: "m_widget" in kaction.cpp (2993)
Connect to X-server of RH9 box without problem
$ ssh -X [EMAIL PROTECTED] also no problem
As ROOT *** # ssh -X [EMAIL PROTECTED] Permission denied (publickey,password,keyboard-interactive). Could not login/connect X server of Gentoo box
# ssh -X [EMAIL PROTECTED] [EMAIL PROTECTED]'s password: Last login: Tue Nov 11 18:53:51 2003 from 192.168.0.1 localhost root # konqueror kbuildsycoca running... DirFilterPlugin: New URL : file:/root DirFilterPlugin: Current URL: DirFilterPlugin: New URL : file:/ DirFilterPlugin: Current URL: file:/root ASSERT: "m_widget" in kaction.cpp (2993) ASSERT: "m_widget" in kaction.cpp (2993) Connect to X-server of Gentoo box
I tried more than an hour to find out the cause of this funny things without result including rebooting PCs
/etc/ssh/sshd_config
Host *
ForwardX11=yesfound on both boxes. Also tried adding "ForwardAgent=yes"
Remark: On Gentoo box - iptables not running On RH9 box - iptables stopped running only Shorewall running
B.R. Stephen
Stephen Liu wrote:
I will try your suggestion when the problem comes again. This time it works perfect.
Without -X, the remote machine is connecting to the local machine's IP, and conversing with the X server via it's own TCP connection. If a firewall is in the way, this won't work.
With -X, all X data is sent via the already existing SSH connection (the same connection you type commands via), and so will work even if all other ports are blocked.
MAL
-- [EMAIL PROTECTED] mailing list
