Monday, December 13, 2010

[android-developers] SSHFS on Android

I'm trying to run sshfs on Android. This is essentially a Proof of
Concept for something else I'm trying to do (essentially a FUSE mount
backed by an SSL connection to a remote server), but I figured that
getting the binary working would be a decent POC (my eventual goal is
to build an Android service that does this).

Using the OpenMoko Toolchain (since the ndk toolchain doesn't have all
the required headers), I got the Fuse library and the (static) sshfs
binary to build. I pushed it to a development handset, and tried
running it (via an ADB root prompt). When using an SSHFS command that
worked on a ubuntu box (both are connecting to a Mac on the same local
network), I get the following error:

read: Connection reset by peer

Looking into this error, it appears to have something to do with the
ssh layer not being setup correctly (sometimes it happens due to
issues with known_hosts). Since the root user on Android doesn't have
a standard account setup, I'm guessing that this is causing it to not
work.

I'm also having trouble getting a command-line ssh client to work (and
I believe it's for similar reasons). When I download ConnectBot, it
connects just fine, although that isn't using a full command-line
client (it's just a library that is invoked using JNI).

Any hints or suggestions on getting this to work?

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate