Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remote C++ Development using SSH only inside Eclipse Environment

How do you integrate Remote Systems Explorer and CDT plugin inside eclipse ?

What I mean is that you can use Remote Systems Explorer (RSE) plugin to work on C++ code on a remote linux box inside Eclipse but when you try to compile, you basically run a shell command through SSH. The CDT plugin is unable to locate the remote system and off course the remote compiler.

Is there a way to integrate both the plugins so that we can use the parsing / suggestion features of CDT for the remote system as well; and also features like remote compilation, remote debugging using SSH only. If this is not possible, then what is the closest open source alternative to the above problem.

like image 372
EFreak Avatar asked Oct 28 '09 10:10

EFreak


People also ask

Does Eclipse support SSH?

Remote System Explorer is result of Eclipse Target Management team work. It support SSH, Telnet, FTP and DStore protocols.

How do I connect to a remote server in eclipse?

To connect to the remote via the SSH connection type Only server, go to "Server Name -> SFTP Files -> Root". Eclipse will then ask you for a user name and password to connect to the remote server.


1 Answers

While I don't know how to integrate the plugins you mentioned I do something similar to what you want to achieve on a daily basis with SSH's X forwarding.

If the remote box has X libraries installed and you have a local X server running, you can just ssh -CXY ... into the development box and simply run eclipse (or any other X application) there. The process will live on the remote box and, therefore, have access to all the filesystems and tools, but the GUI elements and those alone will be displayed in your local X session. That, though, may require quite a bit of bandwidth. Please see man ssh and X documentation for security stuff and compression settings.

like image 179
dennycrane Avatar answered Sep 18 '22 12:09

dennycrane