Re: x-forwarding with ssh
Nick Wright wrote:
> Hi there.
> Currently when I try to run X apps via an ssh login I get the error message
> xterm Xt error: Can't open display:
> Is this a problem with ssh and my x-forwarding?
> if so, how do you change the x-forwarding options in ssh?
> if not, what is the problem and how do I fix it? :)
It doesn't sound like a problem with ssh to me, it sounds like you
haven't set the DISPLAY variable correctly, and therefore probably
haven't run xhost either.
desk.host: # xhost +remove.host.domain.com
desk.host: # ssh -X remote.host.domain.com -l myaccount
email@example.com's password: ********
remote.host: # export DISPLAY=desk.host:0.0
remote.host: # xterm &
That should do it.
Mind you, DISPLAY seems to get set correctly on my box automagically,
but I don't know how it goes about that.