On Wed, Feb 05, 2003 at 10:34:54AM -0800, Robin Snyder wrote:
> I'm unable to forward X despite the fact that I used the -X option with
> ssh and ForwardX11 is set to yes in ssh_config on the remote machine (on
> both machines, actually).  I get the error message
> 
> Error: Can't open display:
> 
> which evidently means that ssh2 has failed to perform its usual magic in
> setting up the display.  A wander through google has comforted me with the
> realization that I am not alone in having this problem, although it has
> not given me any answers.  Any idea what's happening?  I saw nothing
> obviously amiss in the output of ssh -v, but will append the output below
> in case others see problems I missed.

The first thing to check when you get the above error is the contents of the
DISPLAY environment variable. If SSH's forwarding magic is in place, it
should be localhost:10.0 or similar. (The number varies but the hostname is
always localhost.) The trouble could be as simple as some shell
initialization overriding DISPLAY.

-- 
Henry House
The attached file is a digital signature. See <http://romana.hajhouse.org/pgp>
for information.  My OpenPGP key: <http://romana.hajhouse.org/hajhouse.asc>.

Attachment: msg04299/pgp00000.pgp
Description: PGP signature

Reply via email to