Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have installed Win7 and Ubuntu both on this machine.

When I try to connect to my vncserver running on CentOS from my home computer behind a firewall, I get an error:

VNC conenction failed: vncserver too many security failures

... even when loging with right credentials (I reset passwd on CentOS).

Is this caused by attempting to log in as root? I think it is also important to note I have to login to remote Centos through port 6050 - no other port works for me.

Do I have to do something with other ports? I see that vncserver is listening on 5901, 5902 if another added - and I consider connection is established because from time to time (long time) the passwd prompt appears... right?

Even if prompt appeared and I put correct password I get an authentication failure.

How to disable this lockout for testing purposes?

share|improve this question

migrated from Jun 15 '12 at 17:11

This question came from our site for system and network administrators.

3 Answers 3

"VNC conenction failed: vncserver too many security failures"

Means that someone tried to log in with incorrect credentials too frequently within a specified period of time. What that number and time is vary depending on what VNC Server you're using.

Someone's probably running a script trying to log into anything it can find listening on the standard VNC ports, and you'll need to find out what ip this is coming from and block it. Either way, this is really off-topic here - ask again over at SuperUser.

share|improve this answer
I know it already. this might be one of 100 causes. how to find it and how to block it? and wait a second, it cannot be "someone" but my ip, because it works for particular ip. how could be otherwise: than I could receive this error if anybody was trying to login, and I wolud have no way to login. – tinky_winky Jun 15 '12 at 17:17
another question: how to login as root? is it possible? when logging you are asked only about IP and password, so how to login as root to see root session? – tinky_winky Jun 17 '12 at 22:08

I have this problem too. If you use ThightVNC java client, you can connet only by changing the port of VNC client, try port 5002; 5003; etc

share|improve this answer

I saw this error even though I only ever login from a single client machine with correct credentials. Looking in the logs, I saw that was being blacklisted rather than specific IPs. My understanding then is that a failure from any IP is counted as a strike against every IP thus leading to the "too many security failures" issue. It seems this bug report describes things similarly. Using the suggestion there to shut down black listing (which if you have setup you server securely is of limited value), I ran this command on an ssh session on the machine running my vnc server replacing 5 with the appropriate display number:

vncconfig -display :5 -set BlacklistTimeout=0 -set BlacklistThreshold=1000000

After running this I was able to successfully connect with my vnc client and login. For me this was great as I had a lot of running processes associated with my vnc server which makes restarting it a pain.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.