On Fri, Apr 15, 2005 at 11:51:30PM +0100, Dan Hatton wrote:
On Fri, 15 Apr 2005, Chris Green wrote:
I think I need to ask the sysadmin to change the X11Forwarding option in the /etc/ssh/sshd_config file from 'no' to 'yes'.
A couple of months ago, when I set up X11 forwarding over ssh, I couldn't make out from the documentation whether the "X11Forwarding yes" needed to go in the client configuration or the server configuration, so I put it in both: this seems to work, and if you do as you suggest above, you'll end up in with a similar configuration.
Don't worry too much about what the DISPLAY environment variable says: X clients on the ssh server machine should connect (directly) to a fake X server that's really the ssh server in disguise; by default, they can get to this fake X server by having DISPLAY set to localhost:10.0, and sshd will duly set the DISPLAY variable to this value.
That's the extra bit I needed, my DISPLAY variable wasn't being set but setting it manually to localhost:10.0 has got me off the ground at least. I'm now getting other errors, probably permissions type ones which I'll have to deal with.
(Yes, I know localhost:10.0 won't always work, sshd starts with a default of 10.0 and goes in sequence from there)