PDA

View Full Version : SSH Proxy for JMX?


Prato
Jun 22nd, 2006, 05:49 AM
Is it possible to tunnel all JMX packages via SSH?

It would be nice to setup such a tunnel directly in java so that the client can connect via SSH and a protocol like RMI to a secured server.

Do I have to build a connector or proxy on my own using some ssh client implementation for java?

Thanks for your help,
Prato

Costin Leau
Jun 22nd, 2006, 09:24 AM
JDK 5 supports SSL authentication (and AFAIK, so does MX4J, a open source JMX implementation). For SSH I assume you can do a simple tunnel as a quite workaround or try to see if there are any connectors existing out there.
In practice, it shouldn't be very hard to customize one for yourself considering various cryptographic protocols (including SSH) have dedicated libraries and the JMX connector API is not very complicated.

P.S. this is not a Spring specific question rather a JMX one