如何向Eclipse添加FTP支持?

时间:2023-01-17 19:11:57

I'm using Eclipse PHP Development Tools. What would be the easiest way to access a file or maybe create a remote project trough FTP and maybe SSH and SFTP?.

我正在使用Eclipse PHP开发工具。什么是访问文件或通过FTP创建远程项目最简单的方法,也许是SSH和SFTP?

6 个解决方案

#1


218  

Eclipse natively supports FTP and SSH. Aptana is not necessary.

Eclipse本身支持FTP和SSH。 Aptana没有必要。

Native FTP and SSH support in Eclipse is in the "Remote System Explorer End-User Runtime" Plugin.

Eclipse中的本机FTP和SSH支持位于“远程系统资源管理器最终用户运行时”插件中。

Install it through Eclipse itself. These instructions may vary slightly with your version of Eclipse:

通过Eclipse本身安装它。这些说明可能与您的Eclipse版本略有不同:

  1. Go to 'Help' -> 'Install New Software' (in older Eclipses, this is called something a bit different)
  2. 转到“帮助” - >“安装新软件”(在较旧的日食中,这称为有点不同)

  3. In the 'Work with:' drop-down, select your version's plugin release site. Example: for Kepler, this is
    Kepler - http://download.eclipse.org/releases/kepler
  4. 在“使用:”下拉菜单中,选择您的版本的插件发布网站。示例:对于Kepler,这是Kepler - http://download.eclipse.org/releases/kepler

  5. In the filter field, type 'remote'.
  6. 在过滤器字段中,键入“remote”。

  7. Check the box next to 'Remote System Explorer End-User Runtime'
  8. 选中“远程系统资源管理器最终用户运行时”旁边的框

  9. Click 'Next', and accept the terms. It should now download and install.
  10. 点击“下一步”,然后接受条款。它现在应该下载并安装。

  11. After install, Eclipse may want to restart.
  12. 安装后,Eclipse可能要重新启动。

Using it, in Eclipse:

在Eclipse中使用它:

  1. Window -> Open Perspective -> (perhaps select 'Other') -> Remote System Explorer
  2. 窗口 - >打开透视图 - >(也许选择'其他') - >远程系统资源管理器

  3. File -> New -> Other -> Remote System Explorer (folder) -> Connection (or type Connection into the filter field)
  4. 文件 - >新建 - >其他 - >远程系统资源管理器(文件夹) - >连接(或键入连接到过滤器字段)

  5. Choose FTP from the 'Select Remote System Type' panel.
  6. 从“选择远程系统类型”面板中选择FTP。

  7. Fill in your FTP host info in the next panel (username and password come later).
  8. 在下一个面板中填写您的FTP主机信息(用户名和密码稍后会出现)。

  9. In the Remote Systems panel, right-click the hostname and click 'connect'.
  10. 在“远程系统”面板中,右键单击主机名,然后单击“连接”。

  11. Enter username + password and you're good!
  12. 输入用户名+密码就可以了!

  13. Well, not exactly 'good'. The RSE system is fairly unusual, but you're connected.
  14. 好吧,不完全'好'。 RSE系统相当不寻常,但您已连接。

  15. And you're one smart cookie! You'll figure out the rest.
  16. 你是一个聪明的饼干!你会弄明白其余的。

Edit: To change the default port, follow the instructions on this page: http://ikool.wordpress.com/2008/07/25/tips-to-access-ftpssh-on-different-ports-using-eclipse-rse/

编辑:要更改默认端口,请按照此页面上的说明操作:http://ikool.wordpress.com/2008/07/25/tips-to-access-ftpssh-on-different-ports-using-eclipse-rse /

#2


47  

Install Aptana plugin to your Eclipse installation.

将Aptana插件安装到Eclipse安装中。

It has built-in FTP support, and it works excellently.

它具有内置的FTP支持,并且运行良好。

You can:

  • Edit files directly from the FTP server
  • 直接从FTP服务器编辑文件

  • Perform file/folder management (copy, delete, move, rename, etc.)
  • 执行文件/文件夹管理(复制,删除,移动,重命名等)

  • Upload/download files to/from FTP server
  • 上传/下载FTP服务器的文件

  • Synchronize local files with FTP server. You can make several profiles (actually projects) for this so you won't have to reinput over and over again.
  • 与FTP服务器同步本地文件。您可以为此制作多个配置文件(实际上是项目),这样您就不必一次又一次地重新输入。

As a matter of fact the FTP support is so good I'm using Aptana (or Eclipse + Aptana) now for all my FTP needs. Plus I get syntax highlighting/whatever coding support there is. Granted, Eclipse is not the speediest app to launch, but it doesn't bug me so much.

事实上,FTP支持非常好,我现在正在使用Aptana(或Eclipse + Aptana)满足我的所有FTP需求。另外,我得到语法高亮/无论编码支持。当然,Eclipse并不是最快的应用程序,但它并没有给我带来太多麻烦。

#3


36  

have you checked RSE (Remote System Explorer) ? I think it's pretty close to what you want to achieve.

你检查过RSE(远程系统资源管理器)吗?我认为这与你想要达到的目标非常接近。

a blog post about it, with screenshots

关于它的博客文章,截图

#4


3  

I'm not sure if this works for you, but when I do small solo PHP projects with Eclipse, the first thing I set up is an Ant script for deploying the project to a remote testing environment. I code away locally, and whenever I want to test it, I just hit the shortcut which updates the remote site.

我不确定这是否适合你,但是当我用Eclipse做小型独立PHP项目时,我设置的第一件事是用于将项目部署到远程测试环境的Ant脚本。我在本地编码,每当我想测试它时,我只需点击更新远程站点的快捷方式。

Eclipse has good Ant support out of the box, and the scripts aren't hard to make.

Eclipse具有良好的Ant支持,并且脚本不难制作。

#5


3  

SFTP Plug-in: http://www.jcraft.com/eclipse-sftp/ :)

SFTP插件:http://www.jcraft.com/eclipse-sftp/ :)

#6


1  

As none of the other solutions mentioned satisfied me, I wrote a script that uses WinSCP to sync local directories in a project to a FTP(S)/SFTP/SCP Server when eclipse's autobuild feature is triggered. Obviously, this is a Windows-only solution.

由于提到的其他解决方案都没有让我满意,我编写了一个脚本,当触发eclipse的autobuild功能时,使用WinSCP将项目中的本地目录同步到FTP(S)/ SFTP / SCP服务器。显然,这是一个仅限Windows的解决方案。

Maybe someone finds this useful: http://rays-blog.de/2012/05/05/94/use-winscp-to-upload-files-using-eclipses-autobuild-feature/

也许有人觉得这很有用:http://rays-blog.de/2012/05/05/94/use-winscp-to-upload-files-using-eclipses-autobuild-feature/

#1


218  

Eclipse natively supports FTP and SSH. Aptana is not necessary.

Eclipse本身支持FTP和SSH。 Aptana没有必要。

Native FTP and SSH support in Eclipse is in the "Remote System Explorer End-User Runtime" Plugin.

Eclipse中的本机FTP和SSH支持位于“远程系统资源管理器最终用户运行时”插件中。

Install it through Eclipse itself. These instructions may vary slightly with your version of Eclipse:

通过Eclipse本身安装它。这些说明可能与您的Eclipse版本略有不同:

  1. Go to 'Help' -> 'Install New Software' (in older Eclipses, this is called something a bit different)
  2. 转到“帮助” - >“安装新软件”(在较旧的日食中,这称为有点不同)

  3. In the 'Work with:' drop-down, select your version's plugin release site. Example: for Kepler, this is
    Kepler - http://download.eclipse.org/releases/kepler
  4. 在“使用:”下拉菜单中,选择您的版本的插件发布网站。示例:对于Kepler,这是Kepler - http://download.eclipse.org/releases/kepler

  5. In the filter field, type 'remote'.
  6. 在过滤器字段中,键入“remote”。

  7. Check the box next to 'Remote System Explorer End-User Runtime'
  8. 选中“远程系统资源管理器最终用户运行时”旁边的框

  9. Click 'Next', and accept the terms. It should now download and install.
  10. 点击“下一步”,然后接受条款。它现在应该下载并安装。

  11. After install, Eclipse may want to restart.
  12. 安装后,Eclipse可能要重新启动。

Using it, in Eclipse:

在Eclipse中使用它:

  1. Window -> Open Perspective -> (perhaps select 'Other') -> Remote System Explorer
  2. 窗口 - >打开透视图 - >(也许选择'其他') - >远程系统资源管理器

  3. File -> New -> Other -> Remote System Explorer (folder) -> Connection (or type Connection into the filter field)
  4. 文件 - >新建 - >其他 - >远程系统资源管理器(文件夹) - >连接(或键入连接到过滤器字段)

  5. Choose FTP from the 'Select Remote System Type' panel.
  6. 从“选择远程系统类型”面板中选择FTP。

  7. Fill in your FTP host info in the next panel (username and password come later).
  8. 在下一个面板中填写您的FTP主机信息(用户名和密码稍后会出现)。

  9. In the Remote Systems panel, right-click the hostname and click 'connect'.
  10. 在“远程系统”面板中,右键单击主机名,然后单击“连接”。

  11. Enter username + password and you're good!
  12. 输入用户名+密码就可以了!

  13. Well, not exactly 'good'. The RSE system is fairly unusual, but you're connected.
  14. 好吧,不完全'好'。 RSE系统相当不寻常,但您已连接。

  15. And you're one smart cookie! You'll figure out the rest.
  16. 你是一个聪明的饼干!你会弄明白其余的。

Edit: To change the default port, follow the instructions on this page: http://ikool.wordpress.com/2008/07/25/tips-to-access-ftpssh-on-different-ports-using-eclipse-rse/

编辑:要更改默认端口,请按照此页面上的说明操作:http://ikool.wordpress.com/2008/07/25/tips-to-access-ftpssh-on-different-ports-using-eclipse-rse /

#2


47  

Install Aptana plugin to your Eclipse installation.

将Aptana插件安装到Eclipse安装中。

It has built-in FTP support, and it works excellently.

它具有内置的FTP支持,并且运行良好。

You can:

  • Edit files directly from the FTP server
  • 直接从FTP服务器编辑文件

  • Perform file/folder management (copy, delete, move, rename, etc.)
  • 执行文件/文件夹管理(复制,删除,移动,重命名等)

  • Upload/download files to/from FTP server
  • 上传/下载FTP服务器的文件

  • Synchronize local files with FTP server. You can make several profiles (actually projects) for this so you won't have to reinput over and over again.
  • 与FTP服务器同步本地文件。您可以为此制作多个配置文件(实际上是项目),这样您就不必一次又一次地重新输入。

As a matter of fact the FTP support is so good I'm using Aptana (or Eclipse + Aptana) now for all my FTP needs. Plus I get syntax highlighting/whatever coding support there is. Granted, Eclipse is not the speediest app to launch, but it doesn't bug me so much.

事实上,FTP支持非常好,我现在正在使用Aptana(或Eclipse + Aptana)满足我的所有FTP需求。另外,我得到语法高亮/无论编码支持。当然,Eclipse并不是最快的应用程序,但它并没有给我带来太多麻烦。

#3


36  

have you checked RSE (Remote System Explorer) ? I think it's pretty close to what you want to achieve.

你检查过RSE(远程系统资源管理器)吗?我认为这与你想要达到的目标非常接近。

a blog post about it, with screenshots

关于它的博客文章,截图

#4


3  

I'm not sure if this works for you, but when I do small solo PHP projects with Eclipse, the first thing I set up is an Ant script for deploying the project to a remote testing environment. I code away locally, and whenever I want to test it, I just hit the shortcut which updates the remote site.

我不确定这是否适合你,但是当我用Eclipse做小型独立PHP项目时,我设置的第一件事是用于将项目部署到远程测试环境的Ant脚本。我在本地编码,每当我想测试它时,我只需点击更新远程站点的快捷方式。

Eclipse has good Ant support out of the box, and the scripts aren't hard to make.

Eclipse具有良好的Ant支持,并且脚本不难制作。

#5


3  

SFTP Plug-in: http://www.jcraft.com/eclipse-sftp/ :)

SFTP插件:http://www.jcraft.com/eclipse-sftp/ :)

#6


1  

As none of the other solutions mentioned satisfied me, I wrote a script that uses WinSCP to sync local directories in a project to a FTP(S)/SFTP/SCP Server when eclipse's autobuild feature is triggered. Obviously, this is a Windows-only solution.

由于提到的其他解决方案都没有让我满意,我编写了一个脚本,当触发eclipse的autobuild功能时,使用WinSCP将项目中的本地目录同步到FTP(S)/ SFTP / SCP服务器。显然,这是一个仅限Windows的解决方案。

Maybe someone finds this useful: http://rays-blog.de/2012/05/05/94/use-winscp-to-upload-files-using-eclipses-autobuild-feature/

也许有人觉得这很有用:http://rays-blog.de/2012/05/05/94/use-winscp-to-upload-files-using-eclipses-autobuild-feature/