Depending on your display manager, the magic cookie will be found in one of various locations. Most X display managers (like GDM, XDM, KDM) start an initial X11 server and authenticate to it with an MIT Magic Cookie. Now run your VNC Client of choice from your Client Host, point it at: 127.0.0.1:5900, login with password saved above. Via a terminal (or start it as a daemon with -forever as an init.d service, upstart service, systemd unit, or however you wish) Or, from your VNC Server host, run : ~/bin/start_x11vnc.sh Save my helper script locally: mkdir ~/bin/Ĭurl > ~/bin/start_x11vnc.sh & chmod +x ~/bin/start_x11vnc.shįrom your VNC Client host: ssh -f -L 5900:127.0.0.1:5900 -p 22 '~/bin/start_x11vnc.sh & sleep 10' protect it with filesystem permissions) chmod 600 ~/.vnc/passwd It can be decrypted because the key is known. TL DR apt-get -y install x11vncĮnter your password, it's saved by default in ~/.vnc/passwd in INSECURE encrypted form.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |