Group: comp.os.linux.networking


Subject: Tunnel X over ssh
From: Joe Hesse
Date: 10/30/2007 9:19:49 AM
Hi, I am trying to "Tunnel X over ssh." It works but it appears there are some problems. Here is what I have. I have a local machine which will run the X server. This machine runs Ubuntu 7.10 and I log in without a display manager so I get a text login prompt. I have a remote machine with an ssh server installed. "X11Forwarding yes" is in sshd_config. I have an xauth program on the remote machine. The remote machine runs Fedora 7 and has an IP of 198.168.0.25.. Actually the local and remote machine are on the same local network with private IP addresses. No router separates the two machines. Here is what I do: 1. On the local machine I run $ xinit to get an xterm window. 2. In the xterm window on the local machine I type "$ ssh -l joe -X -v 192.168.0.25". At this point 15+ messages flash by, all beginning with "debug1: ..." Some of the debug messages have the text "Unspecified GSS failure" and "No credentials cache found". 3. After the messages stop, I get a password prompt from the remote machine. I enter my password and it appears I have a successful ssh connection from my local machine to the remote machine. 4. In the xterm window I now type "$ gnome-session &". This produces lots more messages, again all beginning with "debug1: ..." 5. In spite of all the "error" messages, I now have GNOME running on the remote machine and displaying on my local machine. Once in a while when I try this I get a popup window on the local machine which says "ESC is already running, but is not responding ...". My questions is: Is there a way to make this cleaner without all the error messages? Is this the best way to do this? At the moment I want to get this working cleanly and security is not a problem. Thank you, Joe Hesse

Subject: Tunnel X over ssh
From: Bill Marcum
Date: 10/30/2007 2:45:16 PM
On 2007-10-30, Joe Hesse <joe_hesse@actcx.com> wrote: > Hi, > > I am trying to "Tunnel X over ssh." It works but it appears there are some > problems. Here is what I have. > > I have a local machine which will run the X server. This machine runs > Ubuntu 7.10 and I log in without a display manager so I get a text login > prompt. > > I have a remote machine with an ssh server installed. "X11Forwarding yes" > is in sshd_config. I have an xauth program on the remote machine. The > remote machine runs Fedora 7 and has an IP of 198.168.0.25.. > > Actually the local and remote machine are on the same local network with > private IP addresses. No router separates the two machines. > > Here is what I do: > > 1. On the local machine I run $ xinit to get an xterm window. > > 2. In the xterm window on the local machine I type "$ ssh -l joe -X -v > 192.168.0.25". At this point 15+ messages flash by, all beginning with > "debug1: ..." Some of the debug messages have the text "Unspecified GSS > failure" and "No credentials cache found". > > 3. After the messages stop, I get a password prompt from the remote > machine. I enter my password and it appears I have a successful ssh > connection from my local machine to the remote machine. > > 4. In the xterm window I now type "$ gnome-session &". This produces lots > more messages, again all beginning with "debug1: ..." > > 5. In spite of all the "error" messages, I now have GNOME running on the > remote machine and displaying on my local machine. Once in a while when I > try this I get a popup window on the local machine which says "ESC is > already running, but is not responding ...". > > My questions is: Is there a way to make this cleaner without all the error > messages? Is this the best way to do this? At the moment I want to get > this working cleanly and security is not a problem. > Leave out the "-v" and redirect standard error to /dev/null or to a log file. gnome-session 2>/dev/null &