Giter VIP home page Giter VIP logo

kobossh's Introduction

KoboSSH Build dropbear

This repository contains the tools needed to compile dropbear for the arm-kobo-linux-gnueabihf system (all recent Kobo products). This binary is used for root shell access on Kobo devices which, in my case, is used to deploy and debug software on e-readers.

Cloning

This repository uses submodules, and must be cloned with:

git clone --recursive https://github.com/Ewpratten/KoboSSH.git

Compiling locally

This project piggy-backs off the toolchain I use for kolib, so everything is done inside a docker container. Thus: you must have docker installed on your system to compile dropbear. With docker installed, simply run:

docker pull ewpratten/kolib_toolchain:crosstools
./compile.sh

The resulting ARM binary will be placed at ./dropbearmulti

Prebuilt binaries

I keep some prebuild binaries on the releases page.

Kobo-side setup

This assumes you already have telnet access to the device

Dropbear needs somewhere to go on the system. I chose /mnt/onboard/opt/dropbear. With the binary copied over, the following commands will set up ssh keys for the device:

cd /mnt/onboard/opt/dropbear
./dropbearmulti dropbearkey -t dss -f dss_key
./dropbearmulti dropbearkey -t rsa -f rsa_key
./dropbearmulti dropbearkey -t ecdsa -f ecdsa_key

The following command can be used to test dropbear:

/mnt/onboard/opt/dropbear/dropbearmulti dropbear -F -E -r /mnt/onboard/opt/dropbear/dss_key -r /mnt/onboard/opt/dropbear/rsa_key -r /mnt/onboard/opt/dropbear/ecdsa_key -B

To make dropbear start on boot, add the following line to /opt/inetd.conf:

22 stream tcp nowait root /mnt/onboard/opt/dropbear/dropbearmulti dropbear -i -r /mnt/onboard/opt/dropbear/dss_key -r /mnt/onboard/opt/dropbear/rsa_key -r /mnt/onboard/opt/dropbear/ecdsa_key -B

Rebooting should start up an SSH server on the device.

kobossh's People

Contributors

ewpratten avatar

Stargazers

 avatar  avatar

Watchers

 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.