ubiquiti / dropbear-android

Dropbear version 2018.76 cross-compiled to run on Android with password authentication
44 stars 28 forks source link

Failed to open any /dev/pty?? devices #4

Open 0k00l opened 5 years ago

0k00l commented 5 years ago

Hi I have problem from subject. I'm trying to run it (on android box with 4.2.2 android version, rooted of course ;) ) as follows: dropbear -d path_to_dss_key -r p path_to_rsa_key -r path_to_ecdsa_key -p 22 -P path_to_pid -R -N user -C password -U root -G root -A -F

Error log: ... Failed to open any /dev/pty?? devices No pty was allocated, couldn't execute ....

Geofferey commented 5 years ago

I think that's fixed in my fork... https://github.com/geofferey/dropbear-android

0k00l commented 5 years ago

I've checked you fork - it does'nt work too but with different error: char* ttyname(int)(3) is not implemented on Android

0k00l commented 5 years ago

BTW: version 2015.67 works but does not have required options either for password authentication or authorized keys(it requires keys in home dir which is wiped very time when android boots)

0k00l commented 5 years ago

Ok - i fix 2015.67 version :) - to be more exact i've fixed only one line in patch.

You can find docker image to build it on docker hub: s3b0/android-dropbear

fr0zenrain commented 2 years ago

I think that's fixed in my fork... https://github.com/geofferey/dropbear-android

root@192.168.36.26's password: packet_write_wait: Connection to 192.168.36.26 port 22: Broken pipe

dropber output [23515] Mar 30 17:09:56 Not backgrounding [23535] Mar 30 17:09:59 Child connection from ::ffff:192.168.36.242:53285 void endusershell()(3) is not implemented on Android void endusershell()(3) is not implemented on Android void endusershell()(3) is not implemented on Android [23535] Mar 30 17:10:03 Password auth succeeded for 'root' from ::ffff:192.168.36.242:53285 char* ttyname(int)(3) is not implemented on Android [23535] Mar 30 17:10:03 Exit (root): ttyname fails for openpty device