Manual

To use the SFTP plugin, you need to connect a project to a Target. This is much like sharing a project using a team provider like CVS, except that targets don't do version control. They just do file synchronization between the workspace and a remote location.

These steps connect a project to a target site:

  1. Right-click on a project, then select Team -> Target Site
  2. Select Create new site and then SFTP. You can also select ordinary FTP or WebDAV from this dialog, but that is outside the scope of this manual.
  3. Complete the New Sftp site dialog. A few notes:
    • Version 2 of the SSH protocol (SSH2) is the default. If you're not sure, try SSH2 first and SSH1 later if it doesn't work.
    • The "path of sftp-server command" is only necessary for SSH1. Therefore it is greyed-out as long as SSH2 is selected. If you use SSH1, verify that the sftp-server executable is in the default location /usr/libexec/openssh/sftp-server on the server. If it isn't, locate it. Perhaps by locate sftp-server if the locate command is available. Use this location in the New Sftp site dialog.
    • An empty base path indicates the home-directory of the user.
  4. In the next wizard page you have the option of selecting a subdirectory of the path you just entered. You can have different projects using the same Sftp Site with different subdirectories from the base Path.
  5. After pressing Finish, your project is connected to an Sftp target.

"Force disconnect target"

If you previously installed version 1.1.3 or earlier of the SFTP plugin, and now upgrade to version 1.2.0, you may have problems with projects that were already connected to a target. Eclipse will believe that these projects are no longer connected to a target, but when you try to connect one again, eclipse will show an error message that says that the project still is connected to a target.

The problem is in the target manager code and it can't be easily fixed in the SFTP plugin. However a solution has been provided using a second small plugin, org.klomp.eclipse.team.ui. This is installed automatically when you install the SFTP plugin with the update manager.

Whenever you encounter the problem described above, open the pop-up menu on the project, go into the Team submenu and select "Force disconnect target". This will remove all traces of an earlier connection to a target from the project; after that, you can safely connect the project to a new target.




Copyright (C) 2003 Erwin Bolwidt <erwin@klomp.org>, Last Updated: 13 April 2003.