Now you can configure your VNC server to run as a systemd service. This will disconnect your VNC session as well. Press CTRL+C in your local terminal to stop the SSH tunnel and return to your prompt. You can access files in your home directory with the file manager or from the command line, as seen here: Once you are connected, you’ll see the default Xfce desktop. #Ubuntu 16.04 vnc server start password#You’ll be prompted to authenticate using the password you set in Step 1. Once the tunnel is running, use a VNC client to connect to localhost:59000. Then click the Add button, and then the Apply button to implement the tunnel. On the Options controlling SSH port forwarding screen, enter 59000 as the Source Port and localhost:5901 as the Destination, like this: Expand the SSH branch and click on Tunnels. If you are using PuTTY to connect to your server, you can create an SSH tunnel by right-clicking on the top bar of the terminal window, and then clicking the Change Settings… option:įind the Connection branch in the tree menu on the left-hand side of the PuTTY Reconfiguration window. By connecting over an SSH tunnel, you’re limiting VNC access to machines that already have SSH access to the server. This is more secure than simply opening up your server’s firewall to allow connections to port 5901, as that would allow anyone to access your server over VNC. Assuming you followed the prerequisite Initial Server Setup guide for Ubuntu 20.04, you will have added a UFW rule to allow connections to your server over OpenSSH. Note: This command establishes an SSH tunnel that forwards information from port 5901 on your VNC server to port 59000 on your local machine via port 22 on each machine, the default port for SSH. Make sure to replace sammy and your_server_ip with the name of your non-root user and your server’s IP address.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |