在远程机器上编程 [Eclipse - ruby]
有人使用 eclipse 上的任何附加组件在远程计算机上进行开发吗?
我必须通过终端 ssh 并复制粘贴 eclipse 代码 在具有必要权限的远程主机上运行它 任务。我想知道我是否可以在 ubuntu 桌面上的 eclipse 上执行此操作,
谢谢!
编辑: Shawn Bower 建议的 https://help.ubuntu.com/community/SSHFS 有效操作系统有关
Q] 不幸的是,eclipse 可以打开远程安装的 FS 上的脚本,但它不会显示在脚本资源管理器或运行配置中。 “无效的工作目录”
Q] 当我使用 SSHFS 时,有没有办法 sudo su 。
给出一个观点: 通常我以 myself@remote 身份登录远程用户,然后 sudo su - powerUser ,然后使用它来运行我的 ruby 脚本。不幸的是我没有 powerUser 的 pswd。
所以现在虽然我可以在使用 SSHFS 后在 eclipse 上编辑脚本,但我仍然无法以 powerUSer 身份运行它们。
谢谢 !
Has someone used any add-on on eclipse to develop on a remote machine ?
I am having to ssh through the terminal and copy paste the eclipse code
to run it on a remote host that has the necessary permissions for the
task. I am wondering if I can do that on eclipse from my ubuntu desktop
Thanks!
Edit:
https://help.ubuntu.com/community/SSHFS suggested by Shawn Bower works as far as the OS is concerned
Q] Unfortunately eclipse can open the script on remote mounted FS, however it doesnt show up in the Script explorer or in run Configurations. "Invalid working directory"
Q] Is there a way to sudo su when I am using SSHFS.
To give a perspective:
Normally I log into the remote user as myself@remote and then sudo su - powerUser and then use that to run my ruby scripts. Unfortunately I do not have the pswd for powerUser.
So now though I can edit the scripts on eclipse after using SSHFS , I still cant run them as powerUSer.
Thanks !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您考虑过使用 sshfs 吗? https://help.ubuntu.com/community/SSHFS。它将允许您挂载远程文件系统,使其充当本地文件系统。然后你可以将 eclipse 指向本地路径并进行编辑。我将它用于许多网站。
Have you looked into using sshfs? https://help.ubuntu.com/community/SSHFS. It will allow you to mount the remote file system so it acts as a local filesystem. Then you can just point eclipse at the local path and edit away. I use this for a bunch of sites.