java RMI via SSH v2 protocol

前端 未结 3 1427
既然无缘
既然无缘 2021-01-23 08:59

How to implement java RMI over SSH v2 protocol.Is this possible?.If its not possible then can i achieve this using raw socket communication?.Simply i want to transmit my data vi

3条回答
  •  时光说笑
    2021-01-23 09:25

    Use an API like this http://www.jcraft.com/jsch/ to open an ssh tunnel (port forwarding from local machine to remote, on the port where the RMI service is listening), then configure your RMI client to connect to the local (forwarded) port.

提交回复
热议问题