The Remote System Explorer (RSE). It’s a set of plug-ins to do exactly what you want.
RSE may already be included in your current Eclipse installation. To check in Eclipse Indigo go to Window > Open Perspective > Other… and choose Remote System Explorer from the Open Perspective dialog to open the RSE perspective.
To create an SSH remote project from the RSE perspective in Eclipse:
- Define a new connection and choose SSH Only from the Select Remote System Type screen in the New Connection dialog.
- Enter the connection information then choose Finish.
- Connect to the new host. (Assumes SSH keys are already setup.)
- Once connected, drill down into the host’s Sftp Files, choose a folder and select Create Remote Project from the item’s context menu. (Wait as the remote project is created.)
If done correctly, there should now be a new remote project accessible from the Project Explorer and other perspectives within eclipse. With the SSH connection set-up correctly passwords can be made an optional part of the normal SSH authentication process. A remote project with Eclipse via SSH is now created.
Tips to Access FTP/SSH on Different Ports using Eclipse RSE
FTP and SSH servers can use different port other than the default and most of these servers are configured using default ports, but often times FTP/SSH servers may be on different port, so how do you configure Eclipse RSE to access these servers? That’s what this little article is about.
- Make sure you know the FTP/Port port first, create an account on the server
- Start up Eclipse with RSE
- Go to Window -> Open Perspective -> Remote System Explorer to bring up Remote Systems Panel
- Expand SSH/FTP node(s) if you created them already, otherwise, please refer to XXXXXX to create an FTP or SSH connection, your Remote Systems panel will look like this:
- For FTP right click Files node under your FTP root node and choose properties from context menu, for SSH you can click on Sftp Files, Ssh Shells or Ssh Terminals node. You will now be presented the following dialog:
- Select Subsystem node on the left panel of the properties dialog, note the port field on the right side of the dialog, change the value to whatever port you have in hand (see above image for details)
- Click OK to accept the changes you just made, and right click FTP/SSH node and choose connect, now you should be able to connect to your FTP/SSH server
Creating a Remote C/C++ Project
Before creating a Remote C/C++ Project it is recommended that you have already established a connection to a remote RDT server.
Remote C/C++ Project Wizard
Disclaimer: The Remote C/C++ Project Wizard is based on the CDT new project wizard which was originally designed to create local projects. Therefore some aspects of the wizard interface are not ideal for the scenario of creating a remote project. The remote project must be set up correctly or it will not work properly. The following steps describe in detail what must be done to correctly set up a remote project.
- To create a new Remote C/C++ Project begin by opening the New Remote C/C++ Project Wizard by going to File > New > Remote C/C++ Project.
New > Remote C/C++ Project” src=”https://i2.wp.com/help.eclipse.org/indigo/topic/org.eclipse.ptp.rdt.doc.user/images/new_project_wizard/menu_create_project.png”>
- Enter the project name.
- Choose a remote provider for hosting the remote project. RDT currently ships with the RSE file system, so it is recommended that you choose that.
- Select a remote connection associated with the remote provider. Create one if one did not already exist by clicking New.
- Now the location of the project root folder must be entered into the Location field. If you do not know the URI of the project folder then it is recommended that you use the Browse… button.
- If you have chosen RSE as the file system then the RSE Browse for Folder dialog will appear. In this dialog first choose a connection to a running RDT server.
- Choose a folder and click OK.
- The URI of the chosen folder will appear in the Location field. You may create a sub-folder by editing the URI and adding the name of the sub-folder at the end.
- Under the Project type field, select a project type. For the purpose of this tutorial, expand Remote Makefile Project and select Empty Project.
- At the bottom of the wizard uncheck the checkbox that says Show project types and toolchains only if they are supported on the platform. If this checkbox is checked then the wizard will filter out what it thinks are unsupported toolchains. Unfortunately the wizard only examines the local machine for supported toolchains and does not examine the remote machine where the project will be located.
- Select a toolchain. A toolchain is a set of tools (such as a compiler, linker, and assembler) intended to build your project.
- Click Next.
- The next page of the wizard allows you to select available build configurations. It is not necessary to make any changes on this page because additional build configurations can be created after the project has been created.
- Click Finish. Creating the project may take a few minutes. Once the project has been created it will appear in the Project Explorer view.