On Fri, Apr 15, 2005 at 08:52:02AM +0100, Chris Green wrote:
On Thu, Apr 14, 2005 at 10:30:23PM +0100, Adam Bower wrote:
On Thu, Apr 14, 2005 at 09:29:00PM +0100, Chris Green wrote:
The ssh man pages say that ssh will set the DISPLAY environment variable but it doesn't seem to do so, 'echo $DISPLAY' produces nothing.
What am I doing wrong?
Does the remote end have the option "X11Forwarding yes" in the /etc/ssh/sshd_config file?
Aha, no it doesn't. Can I override that with a local config file and/or a command line argument? (The remote machine isn't mine, it's the hosting company where my web pages are hosted)
[Sorry, intermediate message not sent to list]
OK, I've created a local config file on the remote system with "X11Forwarding yes" in it. Still no joy. When I connect using "ssh -X <remote>" there's still not DISPLAY variable set.
On Fri, Apr 15, 2005 at 09:15:00AM +0100, Chris Green wrote:
On Fri, Apr 15, 2005 at 08:52:02AM +0100, Chris Green wrote:
On Thu, Apr 14, 2005 at 10:30:23PM +0100, Adam Bower wrote:
On Thu, Apr 14, 2005 at 09:29:00PM +0100, Chris Green wrote:
The ssh man pages say that ssh will set the DISPLAY environment variable but it doesn't seem to do so, 'echo $DISPLAY' produces nothing.
What am I doing wrong?
Does the remote end have the option "X11Forwarding yes" in the /etc/ssh/sshd_config file?
Aha, no it doesn't. Can I override that with a local config file and/or a command line argument? (The remote machine isn't mine, it's the hosting company where my web pages are hosted)
[Sorry, intermediate message not sent to list]
OK, I've created a local config file on the remote system with "X11Forwarding yes" in it. Still no joy. When I connect using "ssh -X <remote>" there's still not DISPLAY variable set.
More to the point however, surely it's the configuration of the ssh daemon on the remote machine that is relevant here. Changing the /etc/ssh_config file or the $HOME/.ssh/config file on the remote machine will do nothing at all for me when I'm connecting *to* that machine.
I think I need to ask the sysadmin to change the X11Forwarding option in the /etc/ssh/sshd_config file from 'no' to 'yes'.
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.
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)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Chris Green chris@areti.co.uk wrote:
On Fri, Apr 15, 2005 at 08:52:02AM +0100, Chris Green wrote:
Aha, no it doesn't. Can I override that with a local config file and/or a command line argument? (The remote machine isn't mine, it's the hosting company where my web pages are hosted)
As I understand it, no, you can't override it with a ~user/.ssh config file, because it's handled by the sshd. It does beg the question, however, of why you are wanting to run X11 apps on a web server.
OK, I've created a local config file on the remote system with "X11Forwarding yes" in it. Still no joy. When I connect using "ssh -X <remote>" there's still not DISPLAY variable set.
Sounds right to me. X11Forwarding is per host, and only setupable in the sshd_config.
Thanks, - -- Brett Parker web: http://www.sommitrealweird.co.uk/ email: iDunno@sommitrealweird.co.uk