How do I add FTP support to Eclipse?
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?.
Solution 1:
Eclipse natively supports FTP and SSH. Aptana is not necessary.
Native FTP and SSH support in Eclipse is in the "Remote System Explorer End-User Runtime" Plugin.
Install it through Eclipse itself. These instructions may vary slightly with your version of Eclipse:
- Go to 'Help' -> 'Install New Software' (in older Eclipses, this is called something a bit different)
- 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 - In the filter field, type 'remote'.
- Check the box next to 'Remote System Explorer End-User Runtime'
- Click 'Next', and accept the terms. It should now download and install.
- After install, Eclipse may want to restart.
Using it, in Eclipse:
- Window -> Open Perspective -> (perhaps select 'Other') -> Remote System Explorer
- File -> New -> Other -> Remote System Explorer (folder) -> Connection (or type Connection into the filter field)
- Choose FTP from the 'Select Remote System Type' panel.
- Fill in your FTP host info in the next panel (username and password come later).
- In the Remote Systems panel, right-click the hostname and click 'connect'.
- Enter username + password and you're good!
- Well, not exactly 'good'. The RSE system is fairly unusual, but you're connected.
- And you're one smart cookie! You'll figure out the rest.
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/
Solution 2:
Install Aptana plugin to your Eclipse installation.
It has built-in FTP support, and it works excellently.
You can:
- Edit files directly from the FTP server
- Perform file/folder management (copy, delete, move, rename, etc.)
- Upload/download files to/from FTP server
- 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.
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.