开发者

Android and JSch: SSH behind another SSH server

I'm trying to access a server behind another server within an Android app. I can get into the first server and do things like edit files and upload/download. The problem is getting into the second server via ssh using rsa keys. The thing is, as a stand alone program compiled on my pc everything works fine, that is I could access the second server and do everything I could on the first. When I try to implement it into my Android app, I can't get into the second server, only the first one. I get a JSch error: Auth Fail when I try, even though I am using the same keys, and I'm sure I am doing things like I did before on开发者_如何学Go my pc. Is this a limitation on Android? Is there a work-around? I've used port 22 for both the first and second server, since it worked before, if that is relevant.


So it turns out that this is a limitation on the server, for security purposes... I'll have to make a RESTful web application to communicate to this second server.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜