Connect to a Linux device

Learn how to access a Linux computer over Meshnet from Windows, macOS, or Linux.

Depending on your purpose, you can choose among the following methods to remotely connect to your Linux computer over Meshnet:

  • GUI-based remote connection using Remote Desktop Protocol (RDP) or Virtual Network Connection (VNC). This method is described further in this article.

  • Text-based remote connection using Secure Shell (SSH). For instructions on this method, see the How to access remote systems over Meshnet using SSH article.

Before you begin

Ensure that:

  • Your remote PC and the device you want to use to access it are linked over Meshnet.

  • Your remote PC is turned on.

Enable remote access on your PC

Note

For the instructions provided in this guide, Ubuntu 24.04 LTS is used as an example.

  1. Open Settings.

  2. Navigate to System > Remote desktop.

  3. Turn on the Desktop sharing and Remote control toggles to allow remote connections and grant them control of the desktop.

    "Desktop sharing" and "Remote control" toggles in the on position.

  4. Under Login details, take note of the username and password required to access this computer.

    Login details of the Linux device.

    You can change the password generated by the app if you wish.

Note

Desktop sharing settings permit remote connections only when a user account is already logged in. To access the device when no user is active, configure the Remote Login options instead.

Connect to your remote PC

Once you have enabled remote access and have your remote desktop credentials, you can connect to your PC using a remote desktop client.

Install Remote Desktop on Windows

To connect to your remote PC from Windows, first install the Microsoft Remote Desktop app, available for free from the Microsoft Store.

Add a remote connection

  1. In the NordVPN app, locate and copy the Nord name or Meshnet IP of the device you want to access.

    Nord name and Meshnet IP address of a Linux device highlighted.

  2. Open the Remote Desktop app and click Add > PCs.

    Arrow pointing to the "Add" button and the "PCs" option is highlighted.

  3. In the PC name field, paste the copied Nord name or Meshnet IP of the PC you want to access.

    Nord name of the remote device entered in the "PC name" field.

  4. Next to User account, click the plus (+) button to add a profile.

  5. Enter your credentials for the remote computer to save for use with this connection.

    • Username: your remote PC account name you recorded earlier.

    • Password: the password for the specified username. Example

      "Username" and "Password" fields filled in with the remote PC's credentials.

  6. Optionally, you can give a nickname to your connection in the Display name field. It is a way to easily identify your Remote Desktop connections.

  7. Click Save, and then click Save again.

Access your remote PC

  1. Under Saved PCs, double-click the connection that you added.

    Newly added PC displayed on the "Remote Desktop" app's main screen.

  2. You may receive a warning message indicating that it might not be safe to connect to this computer. If you don't want to see this dialog in the future, select the Don't ask about this certificate again checkbox.

  3. Click Connect anyway.

You should now be able to access and control your PC remotely.

Alternative remote desktop tools

If you prefer, you can also use other remote access software like NoMachine or AnyDesk to establish a remote connection between your devices.

Using NoMachine

Once remote access is configured on the target PC, install the NoMachine app on both your remote and local devices.

Connect from Windows, macOS, or Linux using NoMachine

On your local machine:

  1. In the NordVPN app, locate and copy the Nord name or Meshnet IP address of the device you want to access.

    Nord name and Meshnet IP address of a Linux device highlighted.

  2. Launch NoMachine and select the Add button to create a new connection.

    Clicking the "Add" button in NoMachine.

  3. Fill in the following information and, in the upper-right corner, click Add:

    • In the Name field, enter a custom name to identify the connection.

    • In the Host field, paste the copied Nord name of the device you want to access. Example

      "Meshnet to Linux" entered in the Name field and Nord name entered in the Host field.

  4. Double-click the newly created connection to initiate the remote connection.

    Newly added connection selected on the main screen of NoMachine.

  5. If a warning appears indicating that the host's authenticity cannot be confirmed, select OK to proceed.

  6. Enter your remote desktop credentials and select OK.

    • Username: your remote PC account name

    • Password: the password you use to log in to your remote PC Example

      Username and password fields filled in with the remote PC credentials.

You should now be able to securely access and control your PC remotely.

Connect from Android or iPhone/iPad using NoMachine

On your mobile device, perform the following steps to add a remote PC connection:

  1. In the NordVPN app, locate and copy the Nord name or Meshnet IP of the device you want to access.

  2. Open NoMachine and select the Add button in the upper-left corner to create a new connection.

    The Add button is highlighted

  3. Ensure that NX is selected as the protocol and tap Continue.

  4. In the Host field, enter either the Nord name or Meshnet IP of the computer you want to access, and then select Continue.

    The Meshnet IP address of the remote PC is entered in the Host field, which is highlighted

  5. Keep the default options for Authentication and Proxy.

  6. Optionally, in the Name field, provide a custom name for the connection and tap Done.

To access your remote PC:

  1. On the NoMachine main screen, double-tap the newly created connection to initiate the remote connection.

    The newly created connection is highlighted on the main screen

  2. If a warning appears indicating that the host's authenticity cannot be confirmed, select OK to proceed.

  3. Enter your remote desktop credentials and select OK.

    • Username: your remote PC account name

    • Password: the password you use to log in to your remote PC Example

      Remote PC credentials being entered

You should now be able to securely access and control your PC remotely.

Using AnyDesk

Once remote access is configured on the target PC, install the AnyDesk app on both the PC and the device you're connecting from.

For this setup, you won't need remote PC account credentials. Instead, you can use either manual approval on the remote PC or set up a dedicated unattended access password.

Optional: Enable unattended access with AnyDesk

By default, AnyDesk needs manual approval for incoming connections. To bypass this, you can enable the app’s Unattended access feature:

  1. On the remote computer, open Terminal.

  2. Run the following command to open AnyDesk security settings:

    sudo anydesk --admin-settings

  3. From the Permission profile dropdown list, choose Unattended access.

    "Unattended access" option highlighted from the "Permission profile" dropdown.

  4. Select the Enable unattended access option.

  5. Enter and confirm a secure password that will be used for authentication. Then, click OK.

    Password fields filled in and an arrow pointing to the "OK" button.

After applying the changes, connect to the device without manual approval by following the platform-specific instructions below.

Connect from Windows, macOS, or Linux using AnyDesk

On your local machine:

  1. In the NordVPN app, locate and copy the Nord name or Meshnet IP address of the device you want to access.

    Nord name and Meshnet IP address of a Linux device highlighted.

  2. Launch AnyDesk you installed earlier.

  3. In the remote address field at the top, enter either the Nord name or the Meshnet IP address of the remote PC and click Connect.

    The Nord name of the remote PC and the "Connect" button are highlighted on the AnyDesk app

If you set up an unattended password on the remote PC:

  1. In the Authorization dialog that appears, enter the password you created for unattended access on the remote PC.

  2. Optionally, you can select the Log in automatically from now on checkbox to avoid entering the password again for subsequent connections.

    "Log in automatically from now on" option is selected and highlighted.

  3. Click OK.

If you haven't set up an unattended password, wait for the user at the remote device to accept the connection request manually.

Connect from Android or iPhone/iPad using AnyDesk

On your mobile device:

  1. In the NordVPN app, locate and copy the Nord name or Meshnet IP of the device you want to access.

  2. Open AnyDesk you installed earlier.

  3. In the remote address field, paste either the Nord name or the Meshnet IP address of the remote PC and tap the arrow button to connect.

    Nord name of the remote PC and the arrow button are highlighted

If you set up an unattended password on the remote PC:

  1. In the Authorization dialog, enter the password you created for unattended access on the remote PC.

  2. Optionally, you can select the Log in automatically from now on checkbox to avoid entering the password again for subsequent connections.

    The "Log in automatically from now on" option is selected.

  3. Tap OK.

If you haven't set up an unattended password, wait for the user at the remote device to accept the connection request manually.

Checklist for a successful connection

If you encounter issues while attempting to connect, check that:

See also

Last updated

Was this helpful?