Just got X going over ssh again, so a reminder to self on how I did it:
-
make sure
X11Forwarding yes
is in /etc/ssh/sshd_config at the server end -
then, in client:
ssh -X -2 user@server
- -X means X forwarding
- -2 forces v 2 ssh protocol
-
this should give you a remote terminal. In it start whatever application, e.g.
xclock &this will be running on the remote system but will display locally. -
if you get the error "cannot connect to X server localhost:10.0" then you need to do
xhost +
in a local terminal: the error means the remote app cannot open an X window on your local system, xhost + releases this.
Twitterings

"xhost +" is bad, mmmkay?
It allows ANYONE to connect to your X server. Hopefully, it's a moot point because you're behind some good firewalls, but it's bad practice. You should explicitly allow only the specific clients you're using.
dumb rules that don't protect abuse.xfree86.org/current/xhost.1.html
Nice Python struct post (node/1112) btw.