Giter Site home page Giter Site logo

pdi-communication-systems-inc / dropbear-android-build Goto Github PK

View Code? Open in Web Editor NEW

This project forked from carlonluca/dropbear-android-build

0.0 6.0 0.0 22 KB

Build tools for dropbear for Android

License: GNU General Public License v3.0

Shell 8.70% C 91.30%

dropbear-android-build's Introduction

Dropbear for Android

Android Toolchain

This is an example for Android 5.0 on arm.

  1. Get Android NDK
    curl -O https://dl.google.com/android/repository/android-ndk-r15c-linux-x86_64.zip
    unzip android-ndk-r15c-linux-x86_64.zip
  2. Build the NDK
    cd android-ndk-r15c/build/tools
    ./make_standalone_toolchain.py --install-dir=../../../android-ndk --arch=arm --api=21 --deprecated-headers
  3. Add the new android-ndk/bin to the $PATH
    export <full path>/android-ndk/bin:$PATH

Compiling

  1. Download source

    git clone --recursive https://github.com/PDi-Communication-Systems-Inc/dropbear-android-build.git
  2. Edit the HOST variables in build.sh to match your environment if required

  3. Compile

    cd dropbear-android-build/dropbear
    ../build.sh <arch>

    You will find the output in dropbear-android-build/target/<arch>.
    By default it is intended to be run from /data/dropbear, this can be changed using command line arguments.

  4. Running

    ln -s dropbearmulti dropbear
    ln -s dropbearmulti dropbearkey
    ln -s dropbearmulti dbclient
    ln -s dropbearmulti scp
    # Generate host key
    ./dropbearkey -f dropbear_rsa_host_key -t rsa -s 4096
    mv dropbear_rsa_host_key /system/etc/dropbear/
    # Starting server
    ./dropbear -A -N root -U 0 -G 0 -R <path of authorized_keys>

Auth

This supports encrypted passwords using crypt() Just add -e to the end of your server arguments and provide a password generated with mkpasswd -mSHA-512
Note: -e MUST be specified last. Somehow it's being reset otherwise.

SCP

For SCP to work you will need to symlink dropbearmulti to /system/xbin/scp

See Also

Description of original Android patch is here.

dropbear-android-build's People

Contributors

phoenix09 avatar nhellfire avatar jtsmith avatar carlonluca avatar

Watchers

James Cloos avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.