Re: Tunnel X over ssh



On 2007-10-30, Joe Hesse <joe_hesse@xxxxxxxxx> 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 &

.



Relevant Pages

  • Re: ASP.NET, C#, Process.GetProcesses
    ... getprocess call should be running on the LOCAL machine not a remote machine. ... you will need to setup proper access rights. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: EFS Questions
    ... I know it sounds confusing, but when the files exist on a remote machine, ... > certificate and keys are on my local machine. ... could I decrypt by just mapping a drive from my local machine ... > to my own local computer instead of using back-up and restore (yes, ...
    (microsoft.public.win2000.security)
  • Tunnel X over ssh
    ... I have a remote machine with an ssh server installed. ... On the local machine I run $ xinit to get an xterm window. ... In spite of all the "error" messages, I now have GNOME running on the ...
    (comp.os.linux.networking)
  • Re: ASP.NET, C#, Process.GetProcesses
    ... >> This command purpose is to find some proccess on local machine and do ... because it seems to grab the proccesses from ... >> the remote machine (what is totally wrong, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Permission for simple file sharing folders blocked on Workgrou
    ... > Guest account - it must be enabled for it to work. ... any network user can access the share. ... > Under Regular File Sharing, the local machine must have an account ... > on the remote machine with which it can log in. ...
    (microsoft.public.windowsxp.general)