在通过SSH与Eclipse远程项目合作 [英] Work on a remote project with Eclipse via SSH

查看:764
本文介绍了在通过SSH与Eclipse远程项目合作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下框:

A)与Eclipse CDT的,结果Windows中
b)在Linux系统中,对我来说只能访问通过SSH。

a) A Windows box with Eclipse CDT,
b) A Linux box, accessible for me only via SSH.

编译器和构建和运行我的项目所需的硬件只是在机器B上。

Both the compiler and the hardware required to build and run my project is only on machine B.

我想使用Eclipse CDT从该项目的Windows中工作透明,并能够建立,运行和在IDE中远程调试项目。

I'd like to work "transparently" from a Windows box on that project using Eclipse CDT and be able to build, run and debug the project remotely from within the IDE.

我如何设置是:


  • 该大楼将工作?任何比写一个本地的makefile这将的rsync 项目,然后调用远程makefile文件来启动实际构建简单的解决方案?并Eclipse的管理建设有一个特点是什么?

  • 调试是否行得通呢?

  • preferably - 在Eclipse CDT code索引是否行得通呢?我必须从机器B的所有需要​​的头文件复制到机器A和其手动添加到包含路径?

  • The building will work? Any simpler solutions than writing a local makefile which would rsync the project and then call a remote makefile to initiate the actual build? Does Eclipse managed build have a feature for that?
  • The debugging will work?
  • Preferably - the Eclipse CDT code indexing will work? Do I have to copy all required header files from machine B to machine A and add them to include path manually?

推荐答案

尝试的远程系统资源管理器(RSE)。这是一组插件做的正是你想要的。

Try the Remote System Explorer (RSE). It's a set of plug-ins to do exactly what you want.

RSE可能已经包含在当前的Eclipse安装。要检查在Eclipse靛蓝转至窗口> 打开透视> 其他... 并选择远程系统资源管理器在打开透视的对话框打开RSE角度。

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.

要从Eclipse中的RSE角度创建SSH远程项目:

To create an SSH remote project from the RSE perspective in Eclipse:


  1. 定义一个新的连接,只有在新建连接对话框中选择远程系统类型屏幕上,选择SSH。

  2. 输入连接信息,然后选择完成。

  3. 连接到新的主机。 (假设SSH密钥已设置。)

  4. 连接之后,向下钻取到主机的的 SFTP文件的,选择一个文件夹并选择创建项目的上下文菜单远程项目。 (等待被创建的远程项目。)

  1. Define a new connection and choose SSH Only from the Select Remote System Type screen in the New Connection dialog.
  2. Enter the connection information then choose Finish.
  3. Connect to the new host. (Assumes SSH keys are already setup.)
  4. 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.)

如果做得正确,但现在应该从Project Explorer和Eclipse中的其他观点访问的新的远程项目。与SSH连接建立正确的密码可以由正常的SSH验证过程的可选部分。通过SSH与Eclipse远程项目现已创建。

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.

这篇关于在通过SSH与Eclipse远程项目合作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆