I was very surprised to not find a sshd, such as dropbear, in the marketplace. I've searched, but didn't find much information other than people few have gotten it working. Before I go ahead and try to compile it myself I was wondering if anyone has it already working and packaged?
I think some of the ROMs available contain Busybox which amongst other things contains the openssh daemon.
The default android shell available from the adb program in the SDK runs as the user shell, which has very limited privileges. The android toolbox doesn't contain a lot of useful tools (for example, no ifconfig) (somebody correct me if I am wrong here)
This post has some more information on busybox:
http://androidcommunity.com/forums/f...n-the-g1-4358/
Edit: This is also informative: http://forum.xda-developers.com/showthread.php?t=442754
Last edited by Supernova; 06-21-2009 at 11:20 AM.
It doesn't look like the guys from xda-dev ever got it working. I have busybox installed, but I'm pretty sure it doesn't include a ssh daemon. Where did you see that it includes openssh?
I'm interested in this, too.
Reachin' up to touch bottom
Well I just downloaded a qemu arm image and I'm going to make an attempt at compiling this myself. I've never compiled for android before, but I'll post the binary if I'm successful.
Got it working!I basically built it with qemu by following the tips and using the patch found here: http://jblomer.web.cern.ch/jblomer/android.htm
I'm not too familiar with all the different kinds of authentication, so this my be very insecure, but it works for me. These are the steps I followed after building dropbear:
1. Transfer dropbear and dropbearkey to a rw partition where they can be executed.
2. Generate a private rsa key with "dropbearkey -t rsa -f my_rsa_key"
3. Run "dropbear -A -N root -U 0 -G 0 -C <desired password> -r <path to my_rsa_key> -p 22"
4. ssh into your phone using the password entered in previous step. You should now have a full root terminal!
Here are the files (If anyone can provide better hosting that would be great):
http://www.speedyshare.com/190562592.html
Last edited by Gentooer; 06-22-2009 at 01:56 AM.
How do you connect to it? Are you using a wireless connection?
"dropbear -A -N root -U 0 -G 0 -C <desired password> -r <path to my_rsa_key> -p 22"
works fine.
I just don't now where to put a .profile or .bashrcfile file to set a path after the lock in like
echo >>/data/dropbear/.profile "PATH=/usr/bin:/usr/sbin:/bin:/sbin:/system/sbin:/system/bin:/system/xbin:/system/xbin/bb:/data/local/bin" echo >>/data/dropbear/.profile "export PATH"
/data/dropbear does not to be the right place
Bookmarks