Git Product home page Git Product logo

dropbear's Introduction

Dropbear All-in-One

Dropbear is a relatively small SSH server and client. It runs on a variety of POSIX-based platforms. Dropbear is open source software, distributed under a MIT-style license. Dropbear is particularly useful for "embedded"-type Linux (or other Unix) systems, such as wireless routers.

Differences between this version and the official version

  • The scp utility is integrated into the main module dropbearmulti. An example of running integrated scp utility: ./dropbearmulti scp -pf '/tmp/file.txt'

  • No external libraries required.

Build toolchain

Download musl version of toolchain: linux musl toolchain

Build

git clone https://github.com/openwrt-xiaomi/dropbear.git

cd dropbear

#sed -i 's/.*define DEFAULT_PATH.*/#define DEFAULT_PATH "\/usr\/bin:\/bin:\/usr\/sbin:\/sbin"/' default_options.h

TARGET_HOST=mipsel-buildroot-linux-musl
CROSS_TOOL=/home/<toolchain_dir>/bin/mipsel-buildroot-linux-musl

#TARGET_HOST=arm-buildroot-linux-musleabihf
#CROSS_TOOL=/home/<toolchain_dir>/bin/arm-buildroot-linux-musleabihf

#TARGET_HOST=aarch64-buildroot-linux-musl
#CROSS_TOOL=/home/<toolchain_dir>/bin/aarch64-buildroot-linux-musl

./configure --host=$TARGET_HOST --enable-static --disable-zlib --disable-harden \
  --disable-pam --enable-bundled-libtom --enable-openpty --enable-syslog \
  --disable-lastlog --disable-utmpx --disable-utmp --disable-wtmp --disable-wtmpx \
  --disable-loginfunc --disable-pututline --disable-pututxline \
  CC="$CROSS_TOOL-gcc" \
  CFLAGS="-Os -Wl,-static -ffunction-sections -fdata-sections" \
  LDFLAGS="-static -Wl,--gc-sections -Wl,--strip-all"

make PROGRAMS="dropbear scp dropbearkey" MULTI=1 STATIC=1

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.