Jump to content

sshd on new roms


Recommended Posts

Guest paulsmith
Posted

Hi,

Ive finally started playing around with new roms.

Whats the easiest way to get SSHD / Drop bear onto these new 2.1 Roms.

Busybox should not be to hard - but I cannot find a link to a drop bear binary. There was a thread on XDA - but the link for dropbear is to old and give a 404 now.

Some help using the scripts that the great MoDaCo roms use for starting dropbear would be very helpful as well.

I made a school boy error and my latest nandroid backup failed (due to space on sd card). So I thought I might as well move to a new Rom.

Thanks in advance.

Guest TomaszG
Posted (edited)

Working dropbear binaries are in attachment. Also included rundropbear.sh with command to start dropbear on 2222 port.

I used this tutorial to install it on ROM: http://www.droidforums.net/forum/droid-hac...roid-2-0-a.html

PS: Mediafire mirror: http://www.mediafire.com/?mynumwauy0j

If you want to use dropbear with WinSCP and you have problems with ls command here's the solution: http://android.modaco.com/index.php?s=&amp...t&p=1225009

dropbear.zip

Edited by TomaszG
Guest paulsmith
Posted

thanks for the info and dropbear Binary file

Guest paulsmith
Posted

I managed to get drop bear ssh daemon to work following the instructions you posted.

Thanks.

Whats an easy way to ensure the daemon is running upon phone start up?

Guest kendon
Posted

use a startscript (in /system/etc/init.d/ for example), then do

adb shell "ps|grep dropbear"

to check

Guest paulsmith
Posted
use a startscript (in /system/etc/init.d/ for example), then do

adb shell "ps|grep dropbear"

to check

Hi,

thanks for the reply. I put a script called rundropbear.sh into /system/etc/init.d/

this script simply has

dropbear -A -N root -U 0 -G 0 -C XXXX -R /etc/dropbear/authorized_keys

Upon a reboot the dropbear daemon was not running.

Using adb shell, then running the script by it launched fine.

Do you think its a permission or path problem?

----rwxr-x root root 74 2010-04-01 13:12 rundropbear.sh

Posted
I put a script called rundropbear.sh into /system/etc/init.d/

IIRC it isn't safe to assume a script in that directory will be run on boot. I think some roms do this & others don't. You'd have to check the init script in /. More than likely there will be an existing script in /system/etc/init.d that you can append yours to or use to launch yours.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.