Use nano or another text editor to create the following file: $ sudo nano you have the file opened, insert the following lines while replacing the user1 username with the username of your VNC user on Line 7 and Line 10. In that case, creating a systemd startup script can facilitate that. While this configuration works, you may have a scenario where you need to manage multiple VNC desktop sessions. Next, use the local port 5901 to connect to a remote VNC server via the SSH tunnel:. ![]() State Recv-Q Send-Q Local Address:Port Peer Address:Port The above command will open a local port 5901 on a localhost loopback network interface 127.0.0.1: $ ss -ltn In the following command, make sure you replace user1 and linuxconfig with the username and hostname of your VNC server: Next, create an SSH tunnel on a local port 5901 leading to a remote port 5901 on your VNC server.If you don’t already have SSH installed, that’s a pretty obvious prerequisite for this to work:. ![]() If you’d like the added security, follow along with these steps: ![]() Of course, this is assuming that you have SSH access on the VNC server. For extra security, you can tunnel the VNC connection through SSH on your VNC server.
0 Comments
Leave a Reply. |