Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
0k00l opened this issue Mar 10, 2019 · 5 comments
Open

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

0k00l opened this issue Mar 10, 2019 · 5 comments

Comments

@0k00l
Copy link

0k00l commented Mar 10, 2019

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
Copy link

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

@0k00l
Copy link
Author

0k00l commented Mar 10, 2019

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

@0k00l
Copy link
Author

0k00l commented Mar 10, 2019

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
Copy link
Author

0k00l commented Mar 10, 2019

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
Copy link

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

[email protected]'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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants