1820390 Members
3764 Online
109623 Solutions
New Discussion юеВ

X11 display

 
Ravikant
Advisor

X11 display

Hi,

I have done all the necessary sshd_conf file changes to enable X11 display and restarted the sshd daemon as well . But still I am not able to get the dispaly. Getting below error -

sshd[9013]: error: Can't get IP address for X11 DISPLAY

Can you pls guide me ASAP...

Regards,
Rav
5 REPLIES 5
Sunny123_1
Esteemed Contributor

Re: X11 display

Hi

do

export DISPLAY = /0.0

Regards
Sunny
Ravikant
Advisor

Re: X11 display

Even after setting the display. I am getting the same error

Rav..
Mel Burslan
Honored Contributor

Re: X11 display

What are you using as an ssh terminal emulator ? PuTTY ?

what the first response says, i.e.,

export DISPLAY = /0.0

is the thing you ABSOLUTELY should not do. if you are going to tunnel X-sessions thru ssh. setting of the DISPLAY variable should be left to the communication between sshd on your server and termianl emulator you are using.

if you are using putty, in your putty profile to connect to this server, go to the

connection --> ssh --> X11

on the left side navigation. On this screen you need to put a check-mark next to "Enable X11 forwarding" and select "MIT-Magic-Cookie-1" radio button. "X Display Location" should be "localhost:0" by default. If not, change it to this string.

And you should be set.
________________________________
UNIX because I majored in cryptology...
Ravikant
Advisor

Re: X11 display

One more observation..
While logging i am getting follwoing error

/usr/bin/X11/xauth: error in locking authority file /home/opssup/.Xauthority

Is there any relation with this X11 dispaly issue.

Rav
Mel Burslan
Honored Contributor

Re: X11 display

I am not 100% sure why this happens but remedy is :

rm /home/opssup/.Xauthority # if exists
touch /home/opssup/.Xauthority

this should fix your woes
________________________________
UNIX because I majored in cryptology...