Networking Forums

Networking Forums > Computer Networking > Linux Networking > Tunnel X over ssh

Reply
Thread Tools Display Modes

Tunnel X over ssh

 
 
Joe Hesse
Guest
Posts: n/a

 
      10-30-2007, 01:19 PM
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


 
Reply With Quote
 
 
 
 
Bill Marcum
Guest
Posts: n/a

 
      10-30-2007, 05:45 PM
On 2007-10-30, Joe Hesse <(E-Mail Removed)> 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 &

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with VPN tunnel Bill Network Routers 0 05-05-2010 07:54 AM
VPN Tunnel Robert Craig Windows Networking 12 11-18-2008 01:52 PM
ssh tunnel kristian Linux Networking 3 03-31-2006 08:04 AM
FTP Using SSH Tunnel Buck Turgidson Linux Networking 3 09-16-2004 06:59 PM
ssh tunnel /dev/null Linux Networking 3 10-25-2003 08:09 PM



1 2 3 4 5 6 7 8 9 10 11