VNC over SSH - m3

From AN!Wiki
Revision as of 21:37, 14 September 2020 by Digimer (Talk | contribs)

Jump to: navigation, search

 AN!Wiki :: How To :: VNC over SSH - m3

Server setup:

yum install tigervnc-server
cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:2.service

Replace '<USR>' with admin:

ExecStart=/usr/bin/vncserver_wrapper admin %i

Create password for vnc authentication:

su admin
vncpasswd (enter passwords)

Return to root user:

systemctl enable --now vncserver@:2.service

Connect;

ssh -L 5902:localhost:5902 -N -f -l $user $host_name
</table>

The port 5901 is usually already in use, so we default to 5902 in this guide.

To connect, start tigervnc and connect to localhost:2 (or :1, if using 5901).

 

Template note icon.png
Note: grep 590 to locate and kill these stale connections.</span>
Any questions, feedback, advice, complaints or meanderings are welcome.
Us: Alteeve's Niche! Support: Mailing List IRC: #clusterlabs on Freenode   © Alteeve's Niche! Inc. 1997-2019
legal stuff: All info is provided "As-Is". Do not use anything here unless you are willing and able to take responsibility for your own actions.
Personal tools
Namespaces

Variants
Actions
Navigation
projects
Toolbox