1

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 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.

3
  • Try to enable logging and have a look what actually happens there. The "Auth fail" error message is quite non-clear. Commented Oct 10, 2011 at 23:22
  • I implemented it just like in the example except I save it to a log file rather than System.err and it reads: INFO: Disconnecting from hostname port 22. Commented Oct 11, 2011 at 3:50
  • hostname represents that second server that I can't get into, to be clear. Commented Oct 11, 2011 at 4:40

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for coming back and providing an answer so we know where the problem was.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.