François makes a good point since your scenario is a desktop app. On Thu, May 21, 2015 at 11:30 AM, François LIOT <francois.l...@poplidays.com > wrote:
> Hi, > > Apache Mina is a full implementation of SSH. > > Somebody already document the same issue than yours : > > http://stackoverflow.com/questions/8279426/how-tunnel-all-rmi-traffic-over-ssh > > I did use Mina as SSHd server, but I didn't test it for port forwarding, > Nevertheless I believe it's the most elegant full java solution. > > Regards, > > François Liot > > > > ________________________________________ > From: Doug Douglass <douglass.d...@gmail.com> > Sent: Thursday, May 21, 2015 8:08 PM > To: users@camel.apache.org > Subject: Re: Connect JMS over SSH Tunnel > > I'd setup the ssh tunnel outside of Camel, then have your Camel JMS URI use > the localhost/port that's being forwarded. That way Camel has no knowledge > of the port forwarding. > > Perhaps try something like sshuttle <https://github.com/apenwarr/sshuttle> > to > provide a simple VPN of sorts via ssh. I've used this between unix hosts > with good results. > > Or, look into a real vpn solution if it's a critical app. > > HTH, > Doug > > On Thu, May 21, 2015 at 10:58 AM, Copernico <engcopern...@gmail.com> > wrote: > > > Hi, > > > > I need to send some messages to an openmq queue on a remote host. > > The problem is that the host is behind a firewall and the only way to > > connect is over ssh. That machine has a MySQL server installed. I can > > connect with it with putty doing a Port Forwarding to my local machine, > so > > i > > can connect to remote mysql server as if it was installed on localhost. > > > > There is a way to do with camel? i mean, create a ssh tunnel to connect > to > > the openmq queue? > > > > I forgot to say that the application in which i am working is a Desktop > App > > > > > > > > -- > > View this message in context: > > > http://camel.465427.n5.nabble.com/Connect-JMS-over-SSH-Tunnel-tp5767395.html > > Sent from the Camel - Users mailing list archive at Nabble.com. > > >