Hi I’m trying to connect to a freshly setup OpenSuSE 11.3 box with ssh -X.
I can connect and login fine and am dropped to a console prompt as expected,
however when I try and start an X program e.g. Xclock, I get 'Error: Can’t
open display: ’ also the display environment variable does not appear to be
set.
output of ssh -v
bash-3.2$ ssh -X -v root@antigen
OpenSSH_5.1p1, OpenSSL 0.9.8k 25 Mar 2009
debug1: Connecting to antigen [137.205.155.3] port 22.
debug1: Connection established.
debug1: identity file /home/phill/.ssh/identity type -1
debug1: identity file /home/phill/.ssh/id_rsa type 1
debug1: identity file /home/phill/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.4
debug1: match: OpenSSH_5.4 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host ‘antigen’ is known and matches the RSA host key.
debug1: Found key in /home/phill/.ssh/known_hosts:48
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /home/phill/.ssh/identity
debug1: Offering public key: /home/phill/.ssh/id_rsa
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Trying private key: /home/phill/.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
Password:
debug1: Authentication succeeded (keyboard-interactive).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
Warning: untrusted X11 forwarding setup failed: xauth key data not generated
Warning: No xauth data; using fake authentication data for X11 forwarding.
debug1: Requesting X11 forwarding with authentication spoofing.
Last login: Fri Jul 23 12:46:34 2010 from jane.bio.warwick.ac.uk
Have a lot of fun…
antigen:~ # xclock
Error: Can’t open display:
antigen:~ #
Make sure you have the xauth program installed on the remote machine. ssh forwarding requires it. It comes from the xorg-x11-xauth package. You may have done a text only server install and not installed this package.
>
> Make sure you have the xauth program installed on the remote machine.
> ssh forwarding requires it. It comes from the xorg-x11-xauth package.
> You may have done a text only server install and not installed this
> package.
Yeah xauth is there, :-
antigen:~ # which xauth
/usr/bin/xauth
Also checked with Yast, and did a full install of everything (right click
install all in list, on the software selection list during install).
> ken yap <ken_yap@no-mx.forums.opensuse.org> wrote in
> news:ken_yap.4ejyq4@no- mx.forums.opensuse.org:
>
>>
>> Make sure you have the xauth program installed on the remote machine.
>> ssh forwarding requires it. It comes from the xorg-x11-xauth package.
>> You may have done a text only server install and not installed this
>> package.
>
> Yeah xauth is there, :-
>
> antigen:~ # which xauth
> /usr/bin/xauth
>
> Also checked with Yast, and did a full install of everything (right click
> install all in list, on the software selection list during install).
>
> Cheers.
>
> Phill.
Have you diff’ed the sshd confs on the two machines? You might also look at
/var/log/messages and ~/.xsession-errors
It’s been a couple of years since I had to chase sshd version changes so I
don’t know any specific things to look for.
I had same problems on several machines w/ 32bit 11.3, and they were all due to diabling IPV6. Enabling IPV6 solved it. Thanks for a good detective work!
More than a year later, with OpenSuse 12.1 this has worked for me! After trying and trying many other things! However I still don’t have a clue on what it actually changes
>
>rcaceresnovell;2201998 Wrote:
>> Either enable IP6 or do the following if you don’t want to enable IP6:
>> - add “-4” to the SSH_OPTS variable in /etc/sysconfig/ssh
>> -make sure that /etc/ssh/sshd_config contains the line:
>> ListenAddress 0.0.0.0
>
>More than a year later, with OpenSuse 12.1 this has worked for me!
>After trying and trying many other things! However I still don’t have a
>clue on what it actually changes
Wild. i have a mix of opensuse 11.1, 11.14, and 12.1. And ssh works in
all directions for me.
Currently moving to opensuse 12.1 / KDE3 as standard. An starting to play
with SLE 11.