How to set a VNC password? - Ask Ubuntu
https://askubuntu.com/questions/36715In my case, I forgot the password to the VNC server. For my situation, the final target was TightVNC running on Ubuntu 18.04 which I needed to reach from my mac. You first kill the existing VNC sessions with . vncserver -kill :1 Use something like this to find out if you've killed all sessions. Usually, the vncserver is running on port 5901: