Skip site navigation (1)Skip section navigation (2)
Date:      25 Apr 2000 16:55:59 +0200
From:      Roland Jesse <jesse@mail.CS.Uni-Magdeburg.De>
To:        freebsd-stable@freebsd.org
Subject:   OpenSSH: DISPLAY not set
Message-ID:  <0vem7ui60w.fsf@cs.uni-magdeburg.de>

next in thread | raw e-mail | index | archive | help
Hi,

I am using OpenSSH on a 4.0-stable box. 

The manpage states:

     The session terminates when the command or shell in on the remote machine
     exists and all X11 and TCP/IP connections have been closed.  The exit
     status of the remote program is returned as the exit status of ssh.

     If the user is using X11 (the DISPLAY environment variable is set), the
     connection to the X11 display is automatically forwarded to the remote
     side in such a way that any X11 programs started from the shell (or com-
     mand) will go through the encrypted channel, and the connection to the
     real X server will be made from the local machine.  The user should not
     manually set DISPLAY. Forwarding of X11 connections can be configured on
     the command line or in configuration files.

     The DISPLAY value set by ssh will point to the server machine, but with a
     display number greater than zero.  This is normal, and happens because
     ssh creates a ``proxy'' X server on the server machine for forwarding the
     connections over the encrypted channel.

However, the DISPLAY variable does not get set when I connect to a
remote machine (running ssh but not OpenSSH). Here is an example
session:

r.arthur ~ % echo $DISPLAY
:0.0
r.arthur ~ % ssh -V
SSH Version OpenSSH-1.2.2, protocol version 1.5.
Compiled with SSL.
r.arthur ~ % ssh -l jesse knecht
jesse@knecht.cs.uni-magdeburg.de's password:
Last login: Tue Apr 25 10:33:55 2000 from arthur.cs.uni-ma
Sun Microsystems Inc.   SunOS 5.6       Generic August 1997
You have mail.
SunOS 5.6
jesse.knecht ~ % echo $DISPLAY

jesse.knecht ~ %     

Am I just missing some config setting or does it simply not work?

        Roland


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0vem7ui60w.fsf>