sshd reports ``couldn't find display information''

sshd reports ``couldn't find display information''

Post by Peter Neergaar » Sat, 07 Apr 2001 13:20:59



I have set up a ssh-daemon on my linux box.  I want it to allow X11
forwarding.  Though I have enabled it in /etc/ssh/shhd_config, it does
not work; when I try to open an X-application I get a message like

   Error: Couldn't find per display information

Debugging the session, I get the following information

    OpenSSH_2.5.2p2, SSH protocols 1.5/2.0, OpenSSL 0x0090581f
    debug1: Seeding random number generator
    debug1: Rhosts Authentication disabled, originating port will not be trusted.
    debug1: ssh_connect: getuid 501 geteuid 0 anon 1
    debug1: Connecting to peter.peter [127.0.0.1] port 22.
    debug1: Connection established.
    debug1: identity file /home/turtle/.ssh/identity type 0
    debug1: unknown identity file /home/turtle/.ssh/id_rsa
    debug1: identity file /home/turtle/.ssh/id_rsa type -1
    debug1: unknown identity file /home/turtle/.ssh/id_dsa
    debug1: identity file /home/turtle/.ssh/id_dsa type -1
    debug1: Remote protocol version 1.99, remote software version OpenSSH_2.5.2p2
    debug1: match: OpenSSH_2.5.2p2 pat ^OpenSSH
    debug1: Local version string SSH-1.5-OpenSSH_2.5.2p2
    debug1: Waiting for server public key.
    debug1: Received server public key (640 bits) and host key (512 bits).
    debug1: Forcing accepting of host key for loopback/localhost.
    debug1: Encryption type: blowfish
    debug1: Sent encrypted session key.
    debug1: Installing crc compensation attack detector.
    debug1: Received encrypted confirmation.

    debug1: Server refused our key.
    debug1: Doing password authentication.

    debug1: Requesting pty.
    debug1: Requesting X11 forwarding with authentication spoofing.
    debug1: Requesting shell.
    debug1: Entering interactive session.
    peter:~ > emacs
    debug1: Received X11 open request.
    debug1: fd 4 setting O_NONBLOCK
    debug1: fd 4 IS O_NONBLOCK
    debug1: channel 0: new [X11 connection from 127.0.0.1 port 1602]
    debug1: X11 connection uses different authentication protocol.
    debug1: X11 rejected 0 i1/o16
    debug1: channel 0: read failed
    debug1: channel 0: input open -> drain
    debug1: channel 0: close_read
    debug1: channel 0: input: no drain shortcut
    debug1: channel 0: ibuf empty
    debug1: channel 0: input drain -> wait_oclose
    debug1: channel 0: send ieof
    debug1: channel 0: write failed
    debug1: channel 0: output open -> wait_ieof
    debug1: channel 0: send oclose
    debug1: channel 0: close_write
    debug1: X11 closed 0 i4/o64
    debug1: channel 0: rcvd ieof
    debug1: channel 0: non-open
    channel 0: istate 4 != open
    channel 0: ostate 64 != open
    debug1: channel 0: rcvd oclose
    debug1: channel 0: input wait_oclose -> closed
    Error: Couldn't find per display information    

How do I decipher this and what does it mean?

If it matters, my system is running Mandrake 7.2 and Xfree86 3.3.6.

Thanks in advance

Peter M?ller Neergaard
--
http://cs-people.bu.edu/turtle/contact.html
``Those who forget the past are condemned to repeat it''---Salman Rushdie

 
 
 

sshd reports ``couldn't find display information''

Post by Bill Unr » Sun, 08 Apr 2001 02:13:26



]I have set up a ssh-daemon on my linux box.  I want it to allow X11
]forwarding.  Though I have enabled it in /etc/ssh/shhd_config, it does
]not work; when I try to open an X-application I get a message like

]   Error: Couldn't find per display information

...

]If it matters, my system is running Mandrake 7.2 and Xfree86 3.3.6.

Sorry, I cannot decipher the logs, but would just point out that Mandrake
7.2 has a bug in
/etc/profile.d/xhost.csh
They forgot the ! ( the not ) in the line
             if ( ! $?XAUTHORITY) then
ssh places the Xauthority file it uses into /var/tmp/ and their version
wipes that out, making X unusable for the csh  shell.
But I have no idea if this is your problem.

 
 
 

sshd reports ``couldn't find display information''

Post by Peter Neergaar » Fri, 13 Apr 2001 11:58:10


I had the problem that ssh's X forwarding did not work under my
Mandrake 7.2 installation.  When trying to use the display I would get
the error message ``couldn't find display information''.


BU> [I] would just point out that Mandrake 7.2 has a bug in
BU> /etc/profile.d/xhost.csh They forgot the ! ( the not ) in the line

BU>              if ( ! $?XAUTHORITY) then

BU> ssh places the Xauthority file it uses into /var/tmp/ and their
BU> version wipes that out, making X unusable for the csh shell.  But
BU> I have no idea if this is your problem.

This was the problem.  After fixing this bug, X forwarding is working
as expected.

Thanks for the help

Peter
--
http://cs-people.bu.edu/turtle/contact.html
``Those who forget the past are condemned to repeat it''---Salman Rushdie

 
 
 

1. Help: "Couldn't find per display information"

Hi,
The application I'm working on bombs out very frequently with the message:

Couldn't find per display information

and then calls exit(1).

This message comes from the Xt library. The application uses Motif.
Could this be an incompatibility between the version of Xt on the
machine and the version with which the Motif libs were compiled? Any
known solutions for this?

Motif version: 2.1
X libraries version: from XFree86 3.3.3.1
X server: Mach64 server from XFree86 3.3.3.1

The same application runs fine in HPUX, IRIX, AIX, WinNT (with X
devkit from eXceed).

Thanks in advance,
Richard.

--
|-------------------------------------------------------------|
| Richard Cognot           | Proceed, with fingers crossed... |
|                          |           /\^^/\                 |

|-------------------------------------------------------------|
| http://www.ensg.u-nancy.fr/~cognot                          |
|-------------------------------------------------------------|

2. Q: FreeBSD "fdisk"

3. insmod: 'couldn't find the kernel version the module was compiled for'

4. New disk gives permission denied for ./.. for normal users

5. Need compatibility information for recent printers (couldn't find in the obvious places)

6. Q: CVS doesn't let the root user commit

7. 'info' displays hyphens in man pages as '^i' instead of '-'

8. memory dimm

9. What's 'yppasswd: couldn't create client'

10. 'Find' 'Updatedb' or find database replacement for Solaris 2.X?

11. X windows: xterm gives "couldn't find per display info"

12. Netatalk: 'afpd' reports unresolved symbol '__xstat'

13. 2.4.14-pre8: 'free' still reports bogus 'cached' value.