Re: Performance penalty using ssh -Y vs xhost +
Re: Performance penalty using ssh -Y vs xhost +
- Subject: Re: Performance penalty using ssh -Y vs xhost +
- From: Rich Cook <email@hidden>
- Date: Mon, 7 Nov 2005 17:11:19 -0800
The performance difference is normal and expected. You can use xauth
to get the same performance as xhost with minimal security risk.
It works like this:
When you start X11 on machine A, it generates a basically random
number which is called a "cookie." xauth provides a way to
manipulate such cookies. When connecting to machine B from A, you
want to extract the cookie from host A and place it on host B using
xauth on both machines:
on host A
xauth extract blah blah blah (look at the man page for details)
on host B
xauth merge blah blah blah (again see the man page)
aFter doing this, you can set the DISPLAY on B to
A:0.0
and the xserver on A will allow clients running on B to connect to
it, since they all now know the magic cookie for A.
On Nov 7, 2005, at 2:37 PM, Jim Solderitsch wrote:
I know using xhost + is considered VERY BAD and I want to avoid it.
I have a closed company network on which I want to run an X11
application on a solaris 2.9 box and display to my Max OS X tiger
(now running 10.4.3) Powerbook. This app is one our company is
developing, primarily for solaris and linux execution environments.
If I use ssh -Y <login>@<machine> I can get this app to display on
my Powerbook ok but with reduced performance compared to using a
client like "no machine" on my Mac allowing me to bring up a CDE
desktop for the solaris machine and running the application inside
the CDE desktop.
If I change to using xhost +<machine> in a Powerbook xterm and then
rlogin to the solaris machine, setting the DISPLAY back to my
Powerbook, and then running the application, I get significantly
better performance compared to using ssh -Y.
Since installing tiger, I can no longer use ssh -X since the login
window from the solaris app is not displayed properly on my Mac.
ssh -Y does allow me to interact with the app, but at a much
reduced performance level.
Some UI steps that lead to a slight delay (under 30 seconds) until
the GUI is drawn correctly under the no machine style of
interaction take close to 10 minutes when interacting via ssh -Y.
Eventually everything is displayed correctly but it takes forever
to get there.
Interestingly, when I run the app on a linux machine rather than
the solaris machine, using ssh -Y vs. xhost vs. a no machine
interaction, I see NO differences in performance.
I suspect that the fault lies in the ssh software running on the
solaris box.
Anyone with any ideas about how this might be corrected?
Thanks.
Jim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/
mailman/options/x11-users/email@hidden
This email sent to email@hidden
--
"There's no time to stop for gas, we're already late"-- Karin Donker
--
Rich "wealthychef" Cook
<http://www.pleasantonplayhouse.com/myfairlady/>
925-784-3077
--
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden