java RMI通过SSH v2协议 [英] java RMI via SSH v2 protocol

查看:131
本文介绍了java RMI通过SSH v2协议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过SSH v2协议实现java RMI。这可能吗?。如果不可能,那么我可以使用原始套接字通信实现这一点吗?。我想通过RMI传输我的数据,但它应该加密为SSH v2包。

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 via RMI but it should be encrypted as SSH v2 packets .

推荐答案

你检查过将RMI与SSL配合使用新的RMI java.net上的文章也值得一读。

Did you check Using RMI with SSL? The The New RMI article on java.net might be worth the read too.

(编辑:OP已经更新了他的问题,实际上是在寻找通过SSH的RMI所以我我正在更新我的答案。

( The OP has updated his question and is actually looking for RMI over SSH so I'm updating my answer.

我从来没有尝试过,但我想你应该能够通过SSH隧道传输RMI。我不明白为什么它不可能你可以创建一个SSH隧道。

I never tried it but I guess you should be able to tunnel RMI through SSH. I don't see why it shouldn't be possible. Create a SSH tunnel and there you go.

关于这个,有一篇关于javaranch的文章,用于Java RMI Part-I的SSH隧道第二部分,提供更多细节。

There is a two parts article on javaranch about this, SSH Tunneling for Java RMI Part-I and Part II, that provides more details.

说实话,我'我不确定为什么你应该更喜欢SSH over SSL(它也有强大的身份验证))。

To be honest, I'm not sure why you should prefer SSH over SSL (which has strong authentication too)).

这篇关于java RMI通过SSH v2协议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆