Discussion:
ssh and X
Paul Jakma
2005-02-01 12:40:58 UTC
Permalink
Hi,

I'm having weird problems with ssh and X forwarding. I have some
stuff in my login scripts to set various xkb preferences (in case I'm
not logged in via GNOME), however this now produces:

XKB extension not present on localhost:10.0

Which is confusing. My Xserver supports XKB, how come it doesnt with
clients talking to it over a forwarded ssh tunnel?

Or sometimes, I login to a remote machine and the first x command
works, but then sometime later xlib will complain that connections
are refused, eg:

Xlib: connection to "localhost:14.0" refused by server

Which I cant understand - how did it work before that, did ssh stop
forwarding the connection after a while?

All very strange. Anyone have any insights?

regards,
--
Paul Jakma ***@clubi.ie ***@jakma.org Key ID: 64A2FF6A
Fortune:
Men are like toilets - they're either taken or full of doo-doo!
--
Irish Linux Users' Group
http://www.linux.ie/mailman/listinfo/ilug/
Paul Jakma
2005-02-01 12:46:27 UTC
Permalink
Which is confusing. My Xserver supports XKB, how come it doesnt with clients
talking to it over a forwarded ssh tunnel?
Eg:

Xdpyinfo over the ssh X forward:

number of extensions: 3
BIG-REQUESTS
LBX
XC-MISC

Xorg Xserver supports a lot more extensions... what is up exactly? Is
my ssh or the remote sshd somehow filtering X / acting as an X proxy?

regards,
--
Paul Jakma ***@clubi.ie ***@jakma.org Key ID: 64A2FF6A
Fortune:
It would seem that evil retreats when forcibly confronted.
-- Yarnek of Excalbia, "The Savage Curtain", stardate 5906.5
--
Irish Linux Users' Group
http://www.linux.ie/mailman/listinfo/ilug/
Paul Jakma
2005-02-01 13:17:38 UTC
Permalink
The answer appears to be:

Use '-Y' "trusted X" forwarding, not -X. (at least with FC3's 3.9p1
ssh client).

Thanks to pron on #linux.

Bonus points to anyone who can explain what this new "-Y" forwarding
is, and wtf they've done to ye olde X forwarding (-X) in 3.9p1
clients as shipped by Fedora.

regards,
--
Paul Jakma ***@clubi.ie ***@jakma.org Key ID: 64A2FF6A
Fortune:
The First Rule of Program Optimization:
Don't do it.

The Second Rule of Program Optimization (for experts only!):
Don't do it yet.
-- Michael Jackson
--
Irish Linux Users' Group
http://www.linux.ie/mailman/listinfo/ilug/
Paul Jakma
2005-02-01 13:25:36 UTC
Permalink
Post by Paul Jakma
Bonus points to anyone who can explain what this new "-Y"
forwarding is, and wtf they've done to ye olde X forwarding (-X) in
3.9p1 clients as shipped by Fedora.
And the answer is in the man page obviously. Seems regular X
forwarding is filtered by ssh now, you need to set:

ForwardX11Trusted yes

in ~/.ssh/config to get the unfiltered X forwarding. Which is
required, as the filtering breaks lots of X apps for me at least.
Post by Paul Jakma
regards,
--
Paul Jakma ***@clubi.ie ***@jakma.org Key ID: 64A2FF6A
Fortune:
If today is the first day of the rest of your life, then what the hell was
yesterday?
--
Irish Linux Users' Group
http://www.linux.ie/mailman/listinfo/ilug/
P***@draigBrady.com
2005-02-01 13:36:40 UTC
Permalink
Use '-Y' "trusted X" forwarding, not -X. (at least with FC3's 3.9p1 ssh
client).
Thanks to pron on #linux.
Bonus points to anyone who can explain what this new "-Y" forwarding is,
and wtf they've done to ye olde X forwarding (-X) in 3.9p1 clients as
shipped by Fedora.
regards,
https://www.redhat.com/archives/fedora-devel-list/2005-January/thread.html#00190
--
Pádraig Brady - http://www.pixelbeat.org
--- Following generated by rotagator ---

Type [Ctrl+R] in the bash prompt and you will get a
(reverse-i-search)`': TYPE THE SEARCH WORD HERE
This will show the matching commands executed before.
--
--
Irish Linux Users' Group
http://www.linux.ie/mailman/listinfo/ilug/
Loading...