Get Started

  • 0.10
  • 10/21/2020
  • Public Content

Running an Application Built with Eclipse* on an SSH Target

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
.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804