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.Paŭlo Ebermann– Paŭlo Ebermann2011-10-10 23:22:55 +00:00Commented 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.Choobs– Choobs2011-10-11 03:50:13 +00:00Commented Oct 11, 2011 at 3:50
-
hostname represents that second server that I can't get into, to be clear.Choobs– Choobs2011-10-11 04:40:39 +00:00Commented Oct 11, 2011 at 4:40
Add a comment
|