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

dropbear Write failed: Broken pipe #117

Open
GoogleCodeExporter opened this issue Oct 25, 2015 · 5 comments
Open

dropbear Write failed: Broken pipe #117

GoogleCodeExporter opened this issue Oct 25, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link
Contributor

What steps will reproduce the problem?
1. Login on droid over telnet
2. Verifing that $uid and $gid are correctlly set from my .bashrc
3. Starting dropbear by : "dropbear -A -N username -U $uid -G $gid -C password 
-d ~/.ssh/dropbear_dss_host_key -r ~/.ssh/dropbear_rsa_host_key -E -p 8090 -P 
sshd.pid"

What is the expected output? What do you see instead?
Dropbear (over first telnet shell): [20961] Oct 08 22:03:40 Running in 
background
Me (on laptop): ssh [email protected] -p 8090 -l username -t 
/data/data/com.spartacusrex.spartacuside/files/system/bin/bash --init-file 
/data/data/com.spartacusrex.spartacuside/files/.init
Dropbear (over first telnet shell): [21395] Oct 08 22:04:08 Child connection 
from ::ffff:192.168.1.14:42079
Dropbear (over first telnet shell): void endusershell()(3) is not implemented 
on Android
Dropbear (in reply to ssh command): [email protected]'s password:
Me (on laptop): password 
Dropbear (over first telnet shell): void endusershell()(3) is not implemented 
on Android
Dropbear (over first telnet shell): [21395] Oct 08 22:04:14 password auth 
succeeded for 'username' from ::ffff:192.168.1.14:42079
Dropbear (over first telnet shell): [21395] Oct 08 22:04:14 exit after auth 
(username): chmod(/dev/pts/5, 0622) failed: Permission denied
Dropbear (in reply to ssh command): Write failed: Broken pipe

What version of the product are you using? On what operating system?
TerminalIde version 2.02 on Galaxy Note3 neo (SM-N7505) Android version 4.3 
(Kernel 3.4.39-2641344)

Please provide any additional information below.
What ever this problem, thank's a lot for this great job even if it can't be 
fixed.
I do really appreciate your job.

Original issue reported on code.google.com by [email protected] on 8 Oct 2014 at 8:11

@GoogleCodeExporter
Copy link
Contributor Author

I'm getting the same error as this. v2.02 on S5 mini (SM-G800F) and Android 
4.4.2. Did anyone find a solution?

Original comment by [email protected] on 2 Jan 2015 at 6:06

@GoogleCodeExporter
Copy link
Contributor Author

[deleted comment]

@GoogleCodeExporter
Copy link
Contributor Author

Getting this error on S4 GT-I9505 and Android 4.4.2 with an SSH login.

Original comment by [email protected] on 13 Feb 2015 at 5:27

@GoogleCodeExporter
Copy link
Contributor Author

same here, anybody can help?

Original comment by [email protected] on 12 May 2015 at 6:50

@GoogleCodeExporter
Copy link
Contributor Author

I found a solution, but it requires root.

First of all, while setting up the server, don't use ~/.ssh/dropbear... to feed 
in the host keys. Rather use the full path /data/data/com.spartacusrex.... 
(this is because we will run the command as su, and it has a different home 
folder)

then you run the command like this: su - -c "..."

in the end it should look like this

su - -c "dropbear -A -N username -U 10058 -G 10058 -C password -d 
/data/data/com.spartacusrex.spartacuside/files/.ssh/dropbear_dss_host_key -r 
/data/data/com.spartacusrex.spartacuside/files/.ssh/dropbear_rsa_host_key -F -E 
-p 8090 -P PidFile"

this will set up the host for user 10058, change it according to your own id. 
You better put this whole thing into an alias in your .bashrc file

This whole setup is for the server side (phone), connecting is the same for 
client side, now it should work, happy sshing :)


+1 on OP's commment, great job of spartacusrex. Only thing I wish was disabling 
the swipe gesture for switching terminal windows, I always switch windows 
unintentionally, while trying to scroll vertically :)

Original comment by [email protected] on 12 May 2015 at 7:47

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

No branches or pull requests

1 participant