Ikool’s Blogbed

SSH Access through Eclipse RSE

I wrote an article on how to install Eclipse RSE (Remote System Explorer), and how to access Eclipse DStore agent using Eclipse RSE. Since then I also explored how to access SSH servers as most of our environments are only SSH enabled. It would be convenient if I can access the remote system using SSH within Eclipse while I am working on projects. I shall be able to run any commands that are supported by my system through Eclipse RSE, and I should also be able to execute programs that I am working on from within Eclipse through Eclipse RSE. According to what I tried so for, that’s what Eclipse RSE is going to do for you. With these features (such as browsing files, shell and terminal, and even FTP) you don’t have to open any extra windows/terminals on your desktop. One concern of Eclipse is memory usage which may be very big, so for I haven’t yet. Ok, let’s start the session.

  1. First make sure you install Eclipse Ganymede for J2EE. Follow this link to install Eclipse RSE
  2. Make sure you have an SSH account. If you don’t have it, you need to consult your system administrator. Or you can install a local SSH server, you can get a copy of SSH server from SSH for Win32. Use Putty to confirm that you can access your SSH server if you haven’t done so.
  3. Start Eclipse
  4. Let’s first bring up the RSE Explorer, go to Eclipse Window -> Open Perspective -> Remote System Explorer, if you don’t see it, then do Eclipse Window -> Open Perspective -> Other. From Open Perspective dialog select Remote System Explorer and click OK
  5. Now you should see a default “Local” Connector Service in Eclipse RSE explorer, from here you can navigate through your local systems such as home, and different drives
  6. Let’s right click Remote Systems panel and choose New -> Connection from the popup menu
  7. There are a few remote system types available in select remote system types dialog, select SSH Only
  8. On “Remote SSH Only System Connection” dialog, fill in the necessary information such as hostname and connection name, either click Next or Finish. If you want to modify settings for SFTP, Shell and Terminal, then click Next, otherwise, Click Finish
  9. Now your eclipse RSE will look like this:
  10. Select the Connector node you just created from Remote Systems panel and choose “connect”, this will pop up Enter Password dialog. Enter your username and password and click OK. You should now be logged in
  11. Your Remote Systems panel should now look like the following, note the little green arrows appear for SFTP, Shells and Terminals nodes, that means you are logged onto your SSH server, and you should be able to access your system through Eclipse RSE now
  12. Right click either Shells or Terminals and choose Launch Shell/Terminal. A new Remote Shell or Terminal should appear (see next 2 images for details). Now you can type in any commands just like you are in your favorite terminals



  13. To quit remote shell, you can just click on the red square button on the top right corner of the shell panel. Or expand Shells or Terminals nodes to select the shell/terminal node to cancel or remove
  14. To disconnect from your SSH server, right click the connector service node in Remote Systems panel and choose disconnect, this will end your SSH connection

With Eclipse RSE, you can also remotely create files, open/edit and save them from within Eclipse. Eclipse knows what editors to use to open the files for you.

You can find the detailed documentation from within your Eclipse or here


July 22, 2008 - Posted by | How Tos, IDE Tools, Technology | , , , ,


  1. Hi there,

    I was wondering if you could answer a quick question for me. The problem is I am currently trying to get RSE working with IBM’s rational clear case plugin. I was just wondering if anyone had any pointers on how to do this if it as at all possible?



    Comment by Nicky Hannaway | July 29, 2008 | Reply

  2. Hello!

    Cool tutorial, worked ok for me so far.

    Now I can edit source files but I also want to resolve remote libraries and includes dependencies. Is there any way to do this?



    Comment by dan | October 6, 2008 | Reply

  3. I am not quite sure about how RSE works especially with DStore.

    I am looking to save files from eclipse via sftp – will the RSE work with that?

    I am saving to a remote account on which I have ssh access to, but I don’t have admin privileges on the system, what can I do with RSE in this instance. I am looking to see what I can do with RSE only with stuff I can install on my shell account.

    Does the dstore require an eclipse system to be stored on the remote server?

    Comment by Frank Church | February 8, 2009 | Reply

  4. Hi,
    This tutorial is very fine. Is there any settings for customizing the ssh terminal. I wanted to make it work like putty.

    Comment by tutysara | April 27, 2009 | Reply

  5. SSH access through Eclipse RSE doesn’t seem to be working for me. I have configured the proxy correctly since other plugins can connect to remote systems. SSH through putty seems to be working too. Here’s the error I see:
    !ENTRY org.eclipse.rse.ui 4 0 2009-06-25 12:58:08.721
    !MESSAGE ProxyHTTP: java.io.IOException: proxy error: Forbidden
    !STACK 0
    com.jcraft.jsch.JSchException: ProxyHTTP: java.io.IOException: proxy error: Forbidden
    at com.jcraft.jsch.ProxyHTTP.connect(ProxyHTTP.java:158)
    at com.jcraft.jsch.Session.connect(Session.java:202)
    at org.eclipse.rse.internal.connectorservice.ssh.SshConnectorService.internalConnect(SshConnectorService.java:187)
    at org.eclipse.rse.core.subsystems.AbstractConnectorService.connect(AbstractConnectorService.java:412)
    at org.eclipse.rse.core.subsystems.SubSystem.connect(SubSystem.java:2468)
    at org.eclipse.rse.internal.ui.actions.SystemConnectAllSubSystemsAction$ConnectAllJob.run(SystemConnectAllSubSystemsAction.java:75)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
    Caused by: java.io.IOException: proxy error: Forbidden
    at com.jcraft.jsch.ProxyHTTP.connect(ProxyHTTP.java:122)
    … 6 more

    Comment by Ashok | June 25, 2009 | Reply

  6. Hi there !
    Very cool tutorial.
    The new connection node I created just have “Sftp files” and “Ssh shells” but no “Ssh Terminals”.
    Do you what could be done to have the “Ssh terminals” item?

    Thanks in advance.

    Comment by Paco | July 1, 2009 | Reply

  7. In “Select remote connections” i have only “Linux”. How get another type of connections, tnx for help

    Comment by Freenty | July 12, 2009 | Reply

  8. Nice job on the tutorial. Quick and to the point.

    Comment by Steve Daly | July 29, 2009 | Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: