Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[dsdp-tm-dev] RE: SSH tunneling & port forwarding

Title: rseserver-2.0-unix.tar
Hello Patrick,
 
thanks for your suggestion!
 
Your contribution would be greatly welcome, and using JSch is just
fine because we use it ourselves in RSE already.
 
I suggest we continue this discussion on the relevant bug:
   https://bugs.eclipse.org/bugs/show_bug.cgi?id=195170
 
As you see there, an Open Source tool for port forwarding already
exists, but we cannot include it directly since it is under GPL. So,
if you could make your contribution under the EPL that would be
just great!
 
I'd also suggest that we package your tool such that it can also
run standalone without RSE.
 
If you need any help on making this happen, please let me know.
Looks like your first step will be getting permission from Ericsson
to contribute the code under the EPL.
 
Thanks!
Martin


From: Patrick Juhl [mailto:patrick.juhl@xxxxxxxxxxxx]
Sent: Tuesday, December 04, 2007 6:13 AM
To: Oberhuber, Martin
Subject: SSH tunneling & port forwarding

Hi again!
 
First of all I would like to mention how usefull and well designed i find the RSE plugin of which I make extensive use.
 
I am writing to you because I would like to make a contribution regarding an SSH tunnel & port forwarding utility. For the solution I work on I needed such a tool and ended up developing it myself. I hope I could contribute in some way by sharing some knowledge.
 
I unfortunately did not design my code to work directly with RSE but rather as an external plugin. Also, the code I wrote contains Ericsson sensitive information and cannot be shared as such. Let me know if you still need a solution for this and I will find some time to make a version i can send. However the implementation is rather simple and uses JSch, a java implementation of SSH, for the creating the port forwarding. Please find more info on the following link:
 
http://www.jcraft.com/jsch/index.html
 
From this, it is very straightforward to build an Eclipse tool for port forwarding using the "-L" option of the SSH command. Examples are provided on how to use it in the downloadable package.
 
I didn't go that much into the source of RSE so unfortunately I don't know how usefull this would be. But in any case, this is a good starting point for creating such a utility.
 
Let me know if you need more information.
 
Best regards,
 
Patrick Juhl
  

From: Oberhuber, Martin [mailto:Martin.Oberhuber@xxxxxxxxxxxxx]
Sent: Thursday, October 18, 2007 7:50 PM
To: Patrick Juhl
Subject: RE: rseserver-2.0-unix.tar

Hello Patrick -
 
thanks for this patch, this is definitely helpful !
 
My only problem is, that for legal reasons I can only accept community
contributions that are submitted through bugzilla. Could you go and
attach your contribution on bug 164300 ?
 
Because by doing so, we get your code under the Eclipse Terms of Use.
We'll also need a comment like the following from you on the bugzilla item:
 
Legal Message: I, {name}, declare that I developed attached code from scratch, without referencing any 3rd party materials except material licensed under the EPL. {I am authorized by my employer to make this contribution under the EPL.}
 
See also
http://wiki.eclipse.org/index.php/TM_and_RSE_FAQ#How_do_I_submit_a_fix_for_a_bug.3F
http://www.eclipse.org/dsdp/tm/development/committer_howto.php#external_contrib
 
You can submit the server.sh script as you have it, but ideally you'd submit
it as a patch. To do so,
  1.) File > Import > Team > Project Set the TM Project Set from
       http://www.eclipse.org/dsdp/tm/development/cvs_setup.php
  2.) Edit the file, it's checked in at
       /org.eclipse.rse.services.dstore/serverruntime/scripts/unix/server.sh
  3.) Team > Create Patch...
 
 
Thanks!
--
Martin Oberhuber
Wind River Systems, Inc.
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm
 


From: Patrick Juhl [mailto:patrick.juhl@xxxxxxxxxxxx]
Sent: Thursday, October 18, 2007 9:39 AM
To: Oberhuber, Martin
Subject: rseserver-2.0-unix.tar


Hi!

I just stumble uppon Bug#: 164300. I also went through the discussion at http://dev.eclipse.org/newslists/news.eclipse.dsdp.tm/msg00240.html.

A quick fix for the Server.sh file and in order to allow port selection, change the code to the following:

#!/bin/sh
#*******************************************************************************
# Copyright (c) 2005, 2006 IBM Corporation, Wind River Systems, Inc. and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
# IBM Corporation - initial API and implementation
# Martin Oberhuber (Wind River) - Fix for solaris (Bourne Shell export statement)
#*******************************************************************************
# Shell script to start an RSE communications server
# This script will start the datastore server listening on an available socket
serverpath=.;
CLASSPATH=.:dstore_extra_server.jar:dstore_core.jar:dstore_miners.jar:clientserver.jar:$CLASSPATH;
export serverpath CLASSPATH
if [ $1 ]                    
then java -DA_PLUGIN_PATH=$serverpath -DDSTORE_TRACING_ON=false -Dclient.username=$1 -DDSTORE_SPIRIT_ON=true org.eclipse.dstore.core.server.Server $1 &

else java -DA_PLUGIN_PATH=$serverpath -DDSTORE_TRACING_ON=false -DDSTORE_SPIRIT_ON=true org.eclipse.dstore.core.server.Server 0 60000 &

Fi

By the way, where should I redirect my questions regarding the use of RSE?

I hope this was helpful!

Best regards,

Patrick Juhl

        


Back to the top