TightVNC too many authentication failures [Resolved]

juni

Junaid Anwar

Posted on September 1, 2018

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






💖 💪 🙅 🚩
juni
Junaid Anwar

Posted on September 1, 2018

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related