Get Started with the Intel® oneAPI Base Toolkit for Linux*

ID 766893
Date 11/07/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

SSH: Running Applications Built with Eclipse*

The following describes how to run a built application on a "remote target" system using an SSH connection.

If your application requires a password-less SSH connection, see Password-less Access to a Remote Linux* Target Device.

This section assumes:

  • you already have an Eclipse project
  • have successfully built an application from that project
  • have some familiarity with Eclipse
  • remote target is already configured for remote access via SSH

  1. Create a Connection within Eclipse by selecting the New Connection option:

  2. Select the SSH Connection type and click Next:

  3. Enter your remote targets Hostname and Username. You can either use Key-based authentication or Password, depending on the configuration of the remote device.

  4. You may also be then prompted to set an Eclipse Secure Storage password. This protects the password you entered when stored on the disk. Enter the password and click OK.

  5. When connecting to the device for the first time, you should be prompted to trust the device. Click Yes to continue.

  6. Once a connection has been defined within Eclipse, open the the Run Configurations window to create your configuration.

  7. Double-click on the "C/C++ Remote Application" configuration type.

    This will create a run configuration for you project.

  8. Set two properties on this view:
    1. Select the connection you created earlier.
    2. Define a location on the remote system where Eclipse will copy your project's binary. Your use-case may dictate where your binary must be copied to, but often a location your user has write permission to, such as /tmp/, will suffice.
  9. Click Apply to save your configuration.
  10. Click Run to run your project on the remote device.

You should see the output in the console of Eclipse.

Note that you can re-use the same connection and launch configuration for debug too. Your remote device will need at least gdbserver in the PATH environment variable.