deven2728 / terminal-ide

Automatically exported from code.google.com/p/terminal-ide
0 stars 0 forks source link

dropbear Write failed: Broken pipe #117

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 username@192.168.43.1 -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): username@192.168.43.1'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 jpcrevoi...@gmail.com on 8 Oct 2014 at 8:11

GoogleCodeExporter commented 9 years ago
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 Tren...@gmail.com on 2 Jan 2015 at 6:06

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Getting this error on S4 GT-I9505 and Android 4.4.2 with an SSH login.

Original comment by ald...@gmail.com on 13 Feb 2015 at 5:27

GoogleCodeExporter commented 9 years ago
same here, anybody can help?

Original comment by samibas...@gmail.com on 12 May 2015 at 6:50

GoogleCodeExporter commented 9 years ago
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 samibas...@gmail.com on 12 May 2015 at 7:47