通过 SSH 使用 Eclipse 处理远程项目 [英] Work on a remote project with Eclipse via SSH

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

问题描述

我有以下盒子:

  1. 带有 Eclipse CDT 的 Windows 框,
  2. 一个 Linux 机器,我只能通过 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.

我该如何设置:

  • 这栋楼能用吗?有没有比编写本地生成文件更简单的解决方案,该文件将 rsync 项目然后调用远程生成文件来启动实际构建?Eclipse 托管构建是否具有此功能?
  • 调试会成功吗?
  • 最好 - Eclipse CDT 代码索引会起作用吗?我是否必须将所有必需的头文件从机器 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 Indigo,请转至 Window > Open Perspective > 其他...,然后选择 Remote System Explorer打开透视图对话框以打开 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.)

如果操作正确,现在应该可以从项目资源管理器和 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天全站免登陆