Socket-over-ssh factory

I would like to use some JMS (Java Message Service), ActiveMQ or FFMQ library, but you need to run it using SSH protocol. I started to implement my own factory ActiveMQ connection method, but then the idea of โ€‹โ€‹implementing Socket / SocketFactory interfaces via SSH hit me. This would allow me to adapt almost any JMS implementation without affecting its code. As usual, someone already had this idea, and I found a couple of implementations of this approach.

http://svn.apache.org/repos/asf/pig/trunk/lib-src/shock/org/apache/pig/shock/SSHSocketImplFactory.java http://benkstein.net/java/SSHSocketFactory/javadoc/

The first is a class somewhere in the gut of Apache Pig. The second is a MySQL client hack / add-on, published by Frank Benkstein in 2004. It seems that the MySQL community is not interested in it (http://www.webservertalk.com/archive277-2004-7-294282.html).

I wonder if there are other implementations of the SocketOverSsh factory, perhaps better documented / maintained?

Update. My main motivation is the lack of additional open ports or configuration changes on both the client and server. Therefore, SOCKS or simple port forwarding are undesirable solutions.

+3
source share
1 answer

. SOCKS? Ssh- - SOCKS, . "ssh -D". , JVM , SOCKS . , - , ssh- Java-.

+2

Source: https://habr.com/ru/post/1787394/


All Articles