[Gllug] X problem

John Winters john at sinodun.org.uk
Sun Nov 5 16:02:02 UTC 2006


Adrian McMenamin wrote:
> loggin into a remote host thus:
> 
> ssh -X adrian at remotehost
> 
> Then running 'xterm' and get this:
> 
> xterm Xt error: Can't open display:
> xterm:  DISPLAY is not set
> 
> I've never had this problem before - ssh has usually handled all the
> forwarding stuff. And how do I set the DISPLAY when I am in a box behind
> NAT and don't have a real world IP Addr?

Assuming you intend to piggy-back X over ssh it doesn't matter about the 
NAT bit.  Try adding the "-v" switch to your invocation of ssh.  That 
may well tell you why the DISPLAY variable isn't getting set.  It may be 
that it's disabled on your target host - in /etc/ssh/sshd_config

HTH
John
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list