delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/08/03/22:02:15

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.6 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <24800981.post@talk.nabble.com>
References: <24800981 DOT post AT talk DOT nabble DOT com>
Date: Tue, 4 Aug 2009 10:01:59 +0800
Message-ID: <f4d6f44b0908031901j39f80379ja8dd0807251e2f13@mail.gmail.com>
Subject: Re: $DISPLAY variable empty after SSHing
From: Huang Bambo <bambo DOT huang AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

You must have you ssh tool make X forward enabled.

2009/8/4 mcoughlin <michael DOT w DOT coughlin AT gmail DOT com>:
>
> This may be confusing because I have to SSH twice to reach the computer I
> work on.
>
> On my home computer, I begin by starting the X server. I run the command:
>
> bash-3.2$ echo $DISPLAY
> :0.0
>
> And so it seems to be working fine. I then do:
>
> ssh -X computer #2
>
> Warning: untrusted X11 forwarding setup failed: xauth key data not genera=
ted
> Warning: No xauth data; using fake authentication data for X11 forwarding.
>
> And that is returned.
>
> ssh -Y computer #2 returns no errors.
>
> When I do
> [mcoughlin AT lisa ~]$ echo $DISPLAY
> localhost:12.0
> is returned for logging in with either the -X or -Y method.
>
> When I finally log into my work computer with either the -X or -Y method,
> -bash-3.2$ echo $DISPLAY
>
> returns nothing. And so when I attempt to use octave to plot,
> octave:2> plot(x)
>
> gnuplot: unable to open display ''
> gnuplot: X11 aborted.
>
> Obviously nothing happens.
>
> Can someone give me a clue?
>
> Thank you,
> Michael
>
> --
> View this message in context: http://www.nabble.com/%24DISPLAY-variable-e=
mpty-after-SSHing-tp24800981p24800981.html
> Sent from the Cygwin list mailing list archive at Nabble.com.
>
>
> --
> Problem reports: =A0 =A0 =A0 http://cygwin.com/problems.html
> FAQ: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 http://cygwin.com/faq/
> Documentation: =A0 =A0 =A0 =A0 http://cygwin.com/docs.html
> Unsubscribe info: =A0 =A0 =A0http://cygwin.com/ml/#unsubscribe-simple
>
>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019