Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  1. Open a terminal or command prompt on your local machine.

  2. Type the following command to SSH into the remote machine: ssh username@machine-ip. Replace username with the actual username you use to log into the remote machine, and machine-ip with the actual IP address of the remote machine. You may be prompted for the password for the user account you're connecting with.

  3. Once you're logged in to the remote machine, type the following command to start the VNC server: vncserver. This will create a new virtual desktop session on the remote machine, which you can connect to using a VNC client.

  4. Note down the display number assigned to the VNC server. This will be a number preceded by a colon (e.g., :1). You'll need this later when you connect to the VNC server using a VNC client.

  5. Type the following command to set a password for the VNC server: vncpasswd. This will prompt you to enter and verify a password for the VNC server. Make sure to remember this password, as you'll need it later to connect to the VNC server.

Info

Note: you may not need to use the vncpasswd command if it asks you for a password while running vncserver

  1. Exit the SSH session by typing exit or logout.

  2. Download and install a VNC client on your local machine. A popular option is RealVNC, which you can download from their website: https://www.realvnc.com/en/connect/download/viewer/ .

  3. Open the VNC client and enter the IP address of the remote machine, followed by the display number you noted down earlier (e.g., machine-ip:1).

  4. Enter the password you set for the VNC server when prompted.

  5. You should now be connected to the remote machine's virtual desktop session via VNC, which you can control using your local machine's keyboard and mouse.