X over SSH!

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Sanjay Darisi
Date:  
Subject: X over SSH!
This is a multi-part message in MIME format.
--------------070704040004070105070307
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit


Wow!!! it works...Thank you Bryce. Btw, what additional things does the
-X switch do apart from setting the DISPLAY to localhost:10.0 . 'cos I
tried ssh without the -X switch for the second time and it works. So,
does it have some kind of cookie setup somewhere or anything to do with
.Xauthority file?
And how are the resources utilized? For few programs I get the shell
prompt back (like mozilla) and for many programs that I executed I
didn't get the prompt back. So, If I invoke an application called A,
should this application be on the local machine for the display to come up?

Sanjay.


Bryce C wrote:

>Just try `ssh -X computer` and then run something simple like xlogo to
>test that X forwarding is working. The -X switch tells it to use SSH X
>forwarding so the DISPLAY should automatically be set to localhost:10.0
>Good Luck
>
>On Tue, 2003-12-30 at 20:45, Sanjay Darisi wrote:
>
>
>>I never had luck with exporting display over SSH. I want to run X-apps
>>on my linux box (say computer 2) and export the display to my other
>>linux computer (say Computer 1). I ssh'ed to computer 2 and set the
>>$DISPLAY to computer1's IP:10.0 The 10 is the offset in sshd_config.
>>And X11Forwarding is set to yes in sshd_config. when I run any x-app
>>(like say xcalc), it says it can't open the display. Any ideas how to
>>export display over ssh? Is it anything to do with .Xauthority file???
>>I ran ethereal on computer 1 and saw that a few tcp packets are
>>destined to port 6010 ( 6000 + 10 offset). So, does it mean my Xserver
>>is not accepting connections on that port? I did xhost + too. It
>>didn't work.
>>
>>Thank you,
>>Sanjay.
>>
>>



--------------070704040004070105070307
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
<br>
Wow!!! it works...Thank you Bryce. Btw, what additional things does the
-X switch do apart from setting the DISPLAY to localhost:10.0 .&nbsp; 'cos I
tried ssh without the -X switch for the second time and it works. So,
does it have some kind of cookie setup somewhere or anything to do with
.Xauthority file? <br>
And how are the resources utilized? For few programs I get the shell
prompt back (like mozilla) and for many programs that I executed I
didn't get the prompt back. So, If I invoke an application called A,
should this application be on the local machine for the display to come
up? <br>
<br>
Sanjay.<br>
<br>
<br>
Bryce C wrote:<br>
<blockquote type="cite" cite="mid1072843644.21281.168.camel@school3">
<pre wrap="">Just try `ssh -X computer` and then run something simple like xlogo to
test that X forwarding is working. The -X switch tells it to use SSH X
forwarding so the DISPLAY should automatically be set to localhost:10.0
Good Luck

On Tue, 2003-12-30 at 20:45, Sanjay Darisi wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">I never had luck with exporting display over SSH. I want to run X-apps
on my linux box (say computer 2) and export the display to my other
linux computer (say Computer 1). I ssh'ed to computer 2 and set the
$DISPLAY to computer1's IP:10.0  The 10 is the offset in sshd_config.
And X11Forwarding is set to yes in sshd_config. when I run any x-app
(like say xcalc), it says it can't open the display. Any ideas how to
export display over ssh? Is it anything to do with .Xauthority file???
I ran ethereal on computer 1 and saw that a few tcp packets are
destined to port 6010 ( 6000 + 10 offset). So, does it mean my Xserver
is not accepting connections on that port? I did xhost + too. It
didn't work. 


Thank you,
Sanjay.
    </pre>
  </blockquote>
</blockquote>
<br>
</body>
</html>


--------------070704040004070105070307--