


Either reboot at this point (so you also can check that DropBear starts as intended), or at least execute mount -o remount,ro /systemįor now, postponing the reboot.

First check for the availability of that file to make sure.įinally, don't forget to make /system read-only again. Note that this assumes your device supports init.d scripts. # start Dropbear (ssh server) service on boot # Generate a hostkey, so we can use DropBearĭropbearkey -t rsa -f /data/dropbear/dropbear_rsa_host_keyĭropbearkey -t dss -f /data/dropbear/dropbear_dss_host_keyĪn additional part if you want DropBear to auto-start at boot: Mv /sdcard/authorized_keys /data/dropbear/.ssh/Ĭhown root: /data/dropbear/.ssh/authorized_keysĬhmod 600 /data/dropbear/.ssh/authorized_keys In short (and in case that link dies), again assuming the required files are already copied to your SD card: I've never tried this myself, so I refer to an external script at Github for that. Installation part done (skip the dropbear parts here if your dropbear comes with busybox – and vice versa, skip the busybox part if not needed. Mount -o remount,rw /system # make sure we can write to systemĬp /sdcard/busybox /system/xbin # copy the binaries to /system/xbinĬd /system/xbin # switch to our target directoryĬhmod 755 busybox dropbear # make sure we've set the correct permissionsīusybox -install /system/xbin # advice busybox to create all its symlinks here I further assume you've already transferred the dropbear/ busybox binary to your SD card. So either adb shell or terminal to your device and make sure you're root. Binaries you install yourself best go to /system/xbin, which is in the $PATH but usually "initially empty" (Android's own stuff is in /system/bin and /system/sbin), so we run a very low risk of "collisions". DropBear sometimes is part of Busybox, or it comes as separate binary. First as a side-note for other readers: We're not talking about "an app" here (those have already been tried and didn't work on that architecture), but about a command-line binary.
