+ Reply to Thread
Results 1 to 9 of 9

Thread: Dropbear (sshd) package?

  1. #1
    Join Date
    Jun 2009
    Posts
    6

    Default Dropbear (sshd) package?


    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?

  2. #2

    Default Re: Dropbear (sshd) package?

    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.

  3. #3
    Join Date
    Jun 2009
    Posts
    6

    Default Re: Dropbear (sshd) package?

    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?

  4. #4
    Join Date
    Sep 2008
    Location
    Silly-con Valley, CA, USA
    Posts
    97

    Default Re: Dropbear (sshd) package?

    I'm interested in this, too.
    Reachin' up to touch bottom

  5. #5
    Join Date
    Jun 2009
    Posts
    6

    Default Re: Dropbear (sshd) package?

    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.

  6. #6
    Join Date
    Jun 2009
    Posts
    6

    Default Re: Dropbear (sshd) package?

    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.

  7. #7
    Join Date
    Oct 2008
    Posts
    434

    Default Re: Dropbear (sshd) package?

    How do you connect to it? Are you using a wireless connection?

  8. #8
    Join Date
    Jun 2009
    Posts
    6

    Default Re: Dropbear (sshd) package?

    Quote Originally Posted by kizer View Post
    How do you connect to it? Are you using a wireless connection?
    It's just connected through wifi. I actually have my phone connected with my desktop via an ad-hoc network, but any setup should work. As long as you can ping the phone, you can ssh into it.
    Last edited by Gentooer; 06-22-2009 at 01:37 AM.

  9. #9
    Join Date
    Sep 2009
    Posts
    1

    Default Re: Dropbear (sshd) package?


    "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

+ Reply to Thread

Similar Threads

  1. Does a simcard come with the package?
    By Hoodfreshdotcom in forum General Android Chat
    Replies: 12
    Last Post: 07-15-2011, 06:10 PM
  2. What is a Bulk package micro sd?
    By CoolPsTuts in forum Accessory Chat
    Replies: 7
    Last Post: 12-29-2008, 08:05 PM
  3. Package Delivery Status app
    By ice_berg_slim in forum New Application Ideas
    Replies: 4
    Last Post: 12-11-2008, 01:19 PM
  4. UPS SIGNED my package!
    By msvoluptous in forum HTC
    Replies: 6
    Last Post: 10-21-2008, 07:08 PM
  5. Package shipped from KY to MO...
    By missxoash in forum HTC
    Replies: 1
    Last Post: 10-17-2008, 05:21 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts