archlinux-4044C icon indicating copy to clipboard operation
archlinux-4044C copied to clipboard

Fix for PTY allocation failure when connecting with ssh

Open biemster opened this issue 3 years ago • 2 comments

First of all, great guide! It helped me a lot installing a persistent dropbear on my Nokia 8110 4G. Somewhere halfway the guide you mention that you need to ssh in with the "sh" command appended, because your binary of dropbear is not able to allocate a pty. This is caused by a compile flag (not sure which though), but looking at the code in sshpty.c you're probably missing any of the HAVE_???PTY or USE_DEV_PTMX preprocessor flags. I found a binary of dropbear from the same 2018.76 codebase where it is able to get a pty and present a proper shell after login: https://forum.xda-developers.com/showpost.php?p=78453473&postcount=36

biemster avatar Sep 28 '20 17:09 biemster

Hey, apologies for the late response, I didn't receive a notification for some reason. Anyway, have you tried this binary and did it work on your device? I could try compiling it by myself at some point later with those flags too, or you could and report any success here :).

chin123 avatar Oct 08 '20 21:10 chin123

That binary is my daily driver since i found it, works flawlessly.

biemster avatar Oct 09 '20 06:10 biemster