Configure Putty & Xming

Dear Experts,
I have spent so much time trying X11 forwarding but still no success. Can you help me with it?

I have the sudo privilege and my system is Ubuntu 17.10. I try the instruction like
But not work. here is my error

hsu@hcavfb11:~$ xclock
Error: Can't open display:

Open in new window

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

IN putty, you need to enable ssh, tunnel, X11 point it to localhost:a.b
Where a.b is the reference displayed when hovering over xming, commonly 0.0
Once you complete these,
Establishing a connection, running Echo $DISPLAY WILL CONFIRM THE MAPPING.
NOTE THE LOCALHOST:10.0 on the Linux side is the opening of the tunnel back through the x11tunnel to loca
Localhost on the Linux refers to itself, localhost on the X11 refers to the workstation from which the connection is initiated.
rmtogetherAuthor Commented:
Hi I

I try localhost:0.0 and localhost:10.0 both of them still not work. and When I do echo  $DISPLAY. There is nothing return.

hsu@hcavfb11:~$ echo  $DISPLAY

hsu@hcavfb11:~$ xclock
Error: Can't open display:

Open in new window

You did not enable X11 in putty.

Ssh, X11 enable X11 forwarding, add the entry
Save season,  make sure the next time you connect the option is set.
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

rmtogetherAuthor Commented:
Hi, arnold

I did enable x11 forwarding Snap2.png
Maybe the sshd server is not set to allow X11 forwarding.  It also needs to be enabled before clients can display X11.
Peter SchultzSenior Network AdministratorCommented:
On your server, make sure /etc/ssh/sshd_config contains:

X11Forwarding yes
X11DisplayOffset 10

You may need to SIGHUP sshd so it picks up these changes.
cat /var/run/ | xargs kill -1

don't forget to install xauth on your server

That should fix it.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
then as serialband and Ptere pointed out, confirm that your sshd_config allows X11 forwarding.
rmtogetherAuthor Commented:
thank you for the help!!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
SSH / Telnet Software

From novice to tech pro — start learning today.