DEV Community

Junaid Anwar
Junaid Anwar

Posted on

3 1

TightVNC too many authentication failures [Resolved]

The Problem

vnc server the authentication error with too many authentication failures

You want to access ubuntu server with its graphical user interface you install TightVNC or x2go. I installed TightVNC's vncserver in my Ubuntu and was able to access it for a few days and then suddenly saw this: "Authentication reason: Too many authentication failures". That drove me nuts and wouldn't let me in.

The problem may occur by you, making too many failed attempts to login to vncserver, or it can be bots accessing your server with brute force methods.

The Solution:

You will have to kill the vnc process and restart it to gain access to the vncserver again. Connect to your server via ssh and run the following command



pgrep vnc

// the output will look like following but yours will be different (sure thing)
17732
23723


Enter fullscreen mode Exit fullscreen mode

You will see one or more process ids that are running against vncserver. Just run the following command for each process id



kill PID

// In my case I ran the following two since I had two process ids
kill 17732
kill 23723


Enter fullscreen mode Exit fullscreen mode

Now you have killed TightVNC on your Ubuntu. Turn it on again and you'll be fine to connect again. To make the VNC up and running again, run the following command.



vncserver -geometry 1920x1080


Enter fullscreen mode Exit fullscreen mode

vnc server the solution to authentication error with too many authentication failures
That's it!

TightVNC working again on my server:
TightVnC connection made again after fixing authentication error with too many authentication failures
Further, read on how to prevent this from happening again can be found here by solveopti.

You can help improve this article on github (File is named same as the title of the article)

GitHub logo Juni4567 / dev.to

This is a repository of my articles posted on dev.to. You can contribute to these articles by submitting a PR

dev.to

This is a repository of my articles posted on dev.to. You can contribute to these articles by submitting a PR






Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

Top comments (2)

Collapse
 
island_dev profile image
Joey The Dev

This helped alot. Thanks!

Collapse
 
cellss profile image
cellss

Thank you Juanaid Anwar

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay