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. >