VNC Server (Tiger VNC) on CENTOS 8

Hi guys, I'm running into a connection issue when trying to connect to my linode CENTOS 8 using VNC viewer.

I have followed the guide from:

and I have confirmed all the install settings and I am running on port 5901

I received the error: "The connection closed unexpectedly" window when I try to connect using localhost:5901.

I tried researching this on

and scrolled down to the message: "The connection closed unexpectedly" and the possible root cause:

VNC Server’s private key is missing or corrupt.

and the fix:

You should investigate why this has occurred. On a remote Mac or Linux computer, note the location of the private key is determined by the VNC Server RsaPrivateKeyFile parameter.

You can restart VNC Server to regenerate the private key, or alternatively at the command line without restarting by running <server-binary>-service -generatekeys</server-binary>

Have you guys run into this issue? Am I missing something? The guide from Linode didn't mention anything on this… please let me know your guys thoughts or any pointers would be greatly appreciated.

0 Replies


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct