Subject: Re: bug#13390: tramp-adb hanging forever

From: Thierry Volpiatto <[email-masked]>
Date: Mon, 18 Feb 2013 15:52:54 +0100

Michael Albinus <[email-masked]> writes:

> Thierry Volpiatto <[email-masked]> writes:
>
>> Hi Michael,
>
> Hi Thierry,
>
>>> /bin/sh does not exist on Android devices. That's why you need to
>>> configure another shell. As I have said above: "I've just tweaked Tramp
>>> to support this; see the Tramp manual for setup hints." Please do so :-)
>> Thanks, but not working either playing with these settings.
>> I will try again later reinstalling sshdroid (I don't like it, too much
>> ads).
>
> Send traces, level 6.
(file-error \"`/system/bin/id -g ' does not return a valid Lisp expression: `uid=0(root) gid=0(root) groups=0(root)
'\")

Trace:

--8<---------------cut here---------------start------------->8---
;; GNU Emacs: 24.3.50.1 Tramp: 2.2.7-pre -*- mode: outline; -*-
15:39:06.329823 tramp-maybe-open-connection (3) # Opening connection for 192.168.0.24#2222 using ssh...
15:39:06.331566 tramp-maybe-open-connection (6) # /bin/sh -i
15:39:06.332828 tramp-wait-for-regexp (6) # 
#$ 
15:39:06.334452 tramp-maybe-open-connection (3) # Sending command `exec ssh  -p 2222 -o ControlPath=/tmp/tramp.29495cl1.%r@%h:%p -o ControlMaster=auto -o ControlPersist=no -e none 192.168.0.24'
15:39:06.334877 tramp-send-command (6) # exec ssh  -p 2222 -o ControlPath=/tmp/tramp.29495cl1.%r@%h:%p -o ControlMaster=auto -o ControlPersist=no -e none 192.168.0.24
15:39:06.335792 tramp-process-actions (3) # Waiting for prompts from remote shell
15:39:07.337277 tramp-process-one-action (5) # Looking for regexp "\(.*ogin\( .*\)?: *\)\'" from remote shell
15:39:07.337860 tramp-process-one-action (5) # Looking for regexp "\(^.*\([pP]assword\|[pP]assphrase\).*:? *\)\'" from remote shell
15:39:07.338393 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
15:39:07.338948 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
15:39:07.339433 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|\)[^]#$%>
]*#?[]#$%>] *\(\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
15:39:07.339915 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
15:39:07.340246 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
15:39:07.340562 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
15:39:07.340875 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
15:39:07.341176 tramp-process-one-action (5) # Call `tramp-action-process-alive'
15:39:08.342844 tramp-process-one-action (5) # Looking for regexp "\(.*ogin\( .*\)?: *\)\'" from remote shell
15:39:08.343412 tramp-process-one-action (5) # Looking for regexp "\(^.*\([pP]assword\|[pP]assphrase\).*:? *\)\'" from remote shell
15:39:08.344037 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
15:39:08.344556 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
15:39:08.344977 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|\)[^]#$%>
]*#?[]#$%>] *\(\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
15:39:08.345299 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
15:39:08.345611 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
15:39:08.345918 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
15:39:08.346218 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
15:39:08.346519 tramp-process-one-action (5) # Call `tramp-action-process-alive'
15:39:09.348187 tramp-process-one-action (5) # Looking for regexp "\(.*ogin\( .*\)?: *\)\'" from remote shell
15:39:09.348772 tramp-process-one-action (5) # Looking for regexp "\(^.*\([pP]assword\|[pP]assphrase\).*:? *\)\'" from remote shell
15:39:09.349294 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
15:39:09.349822 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
15:39:09.350299 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|\)[^]#$%>
]*#?[]#$%>] *\(\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
15:39:09.350634 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
15:39:09.350944 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
15:39:09.351247 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
15:39:09.351543 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
15:39:09.351917 tramp-process-one-action (5) # Call `tramp-action-process-alive'
15:39:10.353592 tramp-process-one-action (5) # Looking for regexp "\(.*ogin\( .*\)?: *\)\'" from remote shell
15:39:10.354159 tramp-process-one-action (5) # Looking for regexp "\(^.*\([pP]assword\|[pP]assphrase\).*:? *\)\'" from remote shell
15:39:10.354688 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
15:39:10.355202 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
15:39:10.355736 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|\)[^]#$%>
]*#?[]#$%>] *\(\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
15:39:10.356085 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
15:39:10.356403 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
15:39:10.356726 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
15:39:10.357023 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
15:39:10.357326 tramp-process-one-action (5) # Call `tramp-action-process-alive'
15:39:10.800135 tramp-process-one-action (5) # Looking for regexp "\(.*ogin\( .*\)?: *\)\'" from remote shell
15:39:10.801324 tramp-process-one-action (5) # Looking for regexp "\(^.*\([pP]assword\|[pP]assphrase\).*:? *\)\'" from remote shell
15:39:10.801765 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
15:39:10.802161 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
15:39:10.802481 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|\)[^]#$%>
]*#?[]#$%>] *\(\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
15:39:10.802823 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
15:39:10.803143 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
15:39:10.803454 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
15:39:10.803832 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
15:39:10.804140 tramp-process-one-action (5) # Call `tramp-action-process-alive'
15:39:11.192347 tramp-process-one-action (5) # Looking for regexp "\(.*ogin\( .*\)?: *\)\'" from remote shell
15:39:11.193126 tramp-process-one-action (5) # Looking for regexp "\(^.*\([pP]assword\|[pP]assphrase\).*:? *\)\'" from remote shell
15:39:11.193497 tramp-process-one-action (5) # Call `tramp-action-password'
15:39:11.193848 tramp-action-password (3) # Sending password
15:39:11.197032 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
15:39:11.197674 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
15:39:11.198008 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|\)[^]#$%>
]*#?[]#$%>] *\(\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
15:39:11.198335 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
15:39:11.198658 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
15:39:11.198978 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
15:39:11.199286 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
15:39:11.199594 tramp-process-one-action (5) # Call `tramp-action-process-alive'
15:39:11.199857 tramp-process-one-action (5) # Looking for regexp "\(.*ogin\( .*\)?: *\)\'" from remote shell
15:39:11.199967 tramp-process-one-action (5) # Looking for regexp "\(^.*\([pP]assword\|[pP]assphrase\).*:? *\)\'" from remote shell
15:39:11.200084 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
15:39:11.200220 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
15:39:11.200329 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|\)[^]#$%>
]*#?[]#$%>] *\(\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
15:39:11.200427 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
15:39:11.200524 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
15:39:11.200622 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
15:39:11.200717 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
15:39:11.200812 tramp-process-one-action (5) # Call `tramp-action-process-alive'
15:39:11.815290 tramp-process-one-action (5) # Looking for regexp "\(.*ogin\( .*\)?: *\)\'" from remote shell
15:39:11.816208 tramp-process-one-action (5) # Looking for regexp "\(^.*\([pP]assword\|[pP]assphrase\).*:? *\)\'" from remote shell
15:39:11.816662 tramp-process-one-action (5) # Call `tramp-action-password'
15:39:11.817015 tramp-action-password (3) # Sending password
15:39:16.631170 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
15:39:16.631761 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
15:39:16.632120 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|\)[^]#$%>
]*#?[]#$%>] *\(\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
15:39:16.632463 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
15:39:16.632811 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
15:39:16.633147 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
15:39:16.633462 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
15:39:16.633774 tramp-process-one-action (5) # Call `tramp-action-process-alive'
15:39:16.634224 tramp-process-one-action (5) # Looking for regexp "\(.*ogin\( .*\)?: *\)\'" from remote shell
15:39:16.634554 tramp-process-one-action (5) # Looking for regexp "\(^.*\([pP]assword\|[pP]assphrase\).*:? *\)\'" from remote shell
15:39:16.634900 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
15:39:16.635238 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
15:39:16.635543 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|\)[^]#$%>
]*#?[]#$%>] *\(\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
15:39:16.635964 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
15:39:16.636292 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
15:39:16.636602 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
15:39:16.636908 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
15:39:16.637209 tramp-process-one-action (5) # Call `tramp-action-process-alive'
15:39:17.638886 tramp-process-one-action (5) # Looking for regexp "\(.*ogin\( .*\)?: *\)\'" from remote shell
15:39:17.639485 tramp-process-one-action (5) # Looking for regexp "\(^.*\([pP]assword\|[pP]assphrase\).*:? *\)\'" from remote shell
15:39:17.640093 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
15:39:17.640614 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
15:39:17.641025 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|\)[^]#$%>
]*#?[]#$%>] *\(\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
15:39:17.641356 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
15:39:17.641676 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
15:39:17.641987 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
15:39:17.642295 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
15:39:17.642594 tramp-process-one-action (5) # Call `tramp-action-process-alive'
15:39:18.073668 tramp-process-one-action (5) # Looking for regexp "\(.*ogin\( .*\)?: *\)\'" from remote shell
15:39:18.074271 tramp-process-one-action (5) # Looking for regexp "\(^.*\([pP]assword\|[pP]assphrase\).*:? *\)\'" from remote shell
15:39:18.074818 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
15:39:18.075209 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
15:39:18.075526 tramp-process-one-action (5) # Call `tramp-action-succeed'
15:39:18.076023 tramp-process-actions (6) # 
Welcome to DropBear SSH Server II!
[email-masked]'s password: 
Permission denied, please try again.
[email-masked]'s password: 
-sh-3.2# 
15:39:18.076413 tramp-maybe-open-connection (3) # Found remote shell prompt on `192.168.0.24'
15:39:18.076751 tramp-open-shell (5) # Opening remote shell `/system/bin/sh'...
15:39:18.077213 tramp-send-command (6) # exec env ENV='' PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS3='' /system/bin/sh 
15:39:18.467061 tramp-wait-for-regexp (6) # 
#$ 
15:39:18.468107 tramp-send-command (6) # PS1=\#\$\ 
15:39:18.859991 tramp-wait-for-regexp (6) # 
#$ 
15:39:18.860478 tramp-send-command (6) # PS2=''
15:39:19.252761 tramp-wait-for-regexp (6) # 
#$ 
15:39:19.253238 tramp-send-command (6) # PS3=''
15:39:19.646449 tramp-wait-for-regexp (6) # 
#$ 
15:39:19.647140 tramp-send-command (6) # PROMPT_COMMAND=''
15:39:20.039535 tramp-wait-for-regexp (6) # 
#$ 
15:39:20.040161 tramp-open-shell (5) # Opening remote shell `/system/bin/sh'...done
15:39:20.040675 tramp-open-connection-setup-interactive-shell (5) # Setting up remote shell environment
15:39:20.041115 tramp-send-command (6) # stty -inlcr -echo kill '^U' erase '^H'
15:39:20.402380 tramp-wait-for-regexp (6) # 
#$ 
15:39:20.403084 tramp-send-command (6) # echo foo
15:39:20.825731 tramp-wait-for-regexp (6) # 
foo
#$ 
15:39:20.826131 tramp-open-connection-setup-interactive-shell (5) # Setting shell prompt
15:39:20.826652 tramp-send-command (6) # PS1=///cd75dd09133d48f3a1970966969c4c9a\#\$
15:39:21.219358 tramp-wait-for-regexp (6) # 
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:21.220409 tramp-send-command (6) # PS2=''
15:39:21.612606 tramp-wait-for-regexp (6) # 
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:21.613468 tramp-send-command (6) # PS3=''
15:39:22.005842 tramp-wait-for-regexp (6) # 
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:22.006660 tramp-send-command (6) # PROMPT_COMMAND=''
15:39:22.399286 tramp-wait-for-regexp (6) # 
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:22.400220 tramp-open-connection-setup-interactive-shell (5) # Determining coding system
15:39:22.400778 tramp-send-command (6) # echo foo ; echo bar
15:39:22.792322 tramp-wait-for-regexp (6) # 
foo
bar
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:22.793199 tramp-open-connection-setup-interactive-shell (5) # Setting coding system to `utf-8-unix' and `utf-8-unix'
15:39:22.793670 tramp-send-command (6) # set +o vi +o emacs
15:39:23.185272 tramp-wait-for-regexp (6) # 
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:23.186003 tramp-open-connection-setup-interactive-shell (5) # Checking system information
15:39:23.186835 tramp-send-command (6) # echo \"`uname -sr`\" 2>/dev/null; echo tramp_exit_status $?
15:39:23.578908 tramp-wait-for-regexp (6) # 
"Linux 2.6.35.7-perf+"
tramp_exit_status 0
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:23.580072 tramp-open-connection-setup-interactive-shell (5) # Checking remote host type for `send-process-string' bug
15:39:23.580444 tramp-set-remote-path (5) # Setting $PATH environment variable
15:39:23.581118 tramp-send-command (6) # echo \"`getconf PATH 2>/dev/null`\" 2>/dev/null; echo tramp_exit_status $?
15:39:23.972302 tramp-wait-for-regexp (6) # 
""
tramp_exit_status 0
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:23.973720 tramp-send-command (6) # echo \"$PATH\" 2>/dev/null; echo tramp_exit_status $?
15:39:24.365757 tramp-wait-for-regexp (6) # 
"/sbin:/system/sbin:/system/bin:/system/xbin"
tramp_exit_status 0
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:24.368434 tramp-send-command (6) # test -d /sbin 2>/dev/null; echo tramp_exit_status $?
15:39:24.954681 tramp-wait-for-regexp (6) # 
tramp_exit_status 0
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:24.957946 tramp-send-command (6) # test -d /system/sbin 2>/dev/null; echo tramp_exit_status $?
15:39:25.544797 tramp-wait-for-regexp (6) # 
tramp_exit_status 1
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:25.547600 tramp-send-command (6) # test -d /system/bin 2>/dev/null; echo tramp_exit_status $?
15:39:26.134353 tramp-wait-for-regexp (6) # 
tramp_exit_status 0
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:26.137374 tramp-send-command (6) # test -d /system/xbin 2>/dev/null; echo tramp_exit_status $?
15:39:26.724237 tramp-wait-for-regexp (6) # 
tramp_exit_status 0
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:26.726817 tramp-send-command (6) # test -d /bin 2>/dev/null; echo tramp_exit_status $?
15:39:27.313996 tramp-wait-for-regexp (6) # 
tramp_exit_status 1
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:27.316787 tramp-send-command (6) # test -d /usr/bin 2>/dev/null; echo tramp_exit_status $?
15:39:27.904096 tramp-wait-for-regexp (6) # 
tramp_exit_status 1
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:27.906949 tramp-send-command (6) # test -d /usr/sbin 2>/dev/null; echo tramp_exit_status $?
15:39:31.541601 tramp-wait-for-regexp (6) # 
tramp_exit_status 1
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:31.544361 tramp-send-command (6) # test -d /usr/local/bin 2>/dev/null; echo tramp_exit_status $?
15:39:32.032989 tramp-wait-for-regexp (6) # 
tramp_exit_status 1
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:32.035848 tramp-send-command (6) # test -d /usr/local/sbin 2>/dev/null; echo tramp_exit_status $?
15:39:32.622452 tramp-wait-for-regexp (6) # 
tramp_exit_status 1
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:32.625324 tramp-send-command (6) # test -d /local/bin 2>/dev/null; echo tramp_exit_status $?
15:39:33.212339 tramp-wait-for-regexp (6) # 
tramp_exit_status 1
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:33.215032 tramp-send-command (6) # test -d /local/freeware/bin 2>/dev/null; echo tramp_exit_status $?
15:39:33.802155 tramp-wait-for-regexp (6) # 
tramp_exit_status 1
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:33.804570 tramp-send-command (6) # test -d /local/gnu/bin 2>/dev/null; echo tramp_exit_status $?
15:39:34.392083 tramp-wait-for-regexp (6) # 
tramp_exit_status 1
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:34.394872 tramp-send-command (6) # test -d /usr/freeware/bin 2>/dev/null; echo tramp_exit_status $?
15:39:34.981919 tramp-wait-for-regexp (6) # 
tramp_exit_status 1
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:34.984822 tramp-send-command (6) # test -d /usr/pkg/bin 2>/dev/null; echo tramp_exit_status $?
15:39:35.571500 tramp-wait-for-regexp (6) # 
tramp_exit_status 1
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:35.574379 tramp-send-command (6) # test -d /usr/contrib/bin 2>/dev/null; echo tramp_exit_status $?
15:39:36.161336 tramp-wait-for-regexp (6) # 
tramp_exit_status 1
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:36.163760 tramp-send-command (6) # test -d /opt/bin 2>/dev/null; echo tramp_exit_status $?
15:39:36.751217 tramp-wait-for-regexp (6) # 
tramp_exit_status 1
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:36.754050 tramp-send-command (6) # test -d /opt/sbin 2>/dev/null; echo tramp_exit_status $?
15:39:37.341077 tramp-wait-for-regexp (6) # 
tramp_exit_status 1
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:37.343380 tramp-send-command (6) # test -d /opt/local/bin 2>/dev/null; echo tramp_exit_status $?
15:39:37.930966 tramp-wait-for-regexp (6) # 
tramp_exit_status 1
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:37.932531 tramp-send-command (6) # PATH=/sbin:/system/bin:/system/xbin; export PATH
15:39:38.323930 tramp-wait-for-regexp (6) # 
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:38.324703 tramp-send-command (6) # mesg n; biff n
15:39:38.717657 tramp-wait-for-regexp (6) # 
sh: biff: command not found
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:38.718875 tramp-send-command (6) # echo \"`tty`\" 2>/dev/null; echo tramp_exit_status $?
15:39:39.110592 tramp-wait-for-regexp (6) # 
sh: tty: command not found
""
tramp_exit_status 0
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:39.111769 tramp-open-connection-setup-interactive-shell (5) # Setting default environment
15:39:39.112426 tramp-send-command (6) # TMPDIR=$HOME/tmp; export TMPDIR
15:39:39.504046 tramp-wait-for-regexp (6) # 
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:39.504983 tramp-send-command (6) # HISTFILE=$HOME/.tramp_history; export HISTFILE
15:39:39.897396 tramp-wait-for-regexp (6) # 
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:39.898294 tramp-send-command (6) # HISTSIZE=1; export HISTSIZE
15:39:40.290319 tramp-wait-for-regexp (6) # 
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:40.291292 tramp-send-command (6) # LC_ALL=C; export LC_ALL
15:39:40.683606 tramp-wait-for-regexp (6) # 
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:40.684682 tramp-send-command (6) # TERM=dumb; export TERM
15:39:41.076735 tramp-wait-for-regexp (6) # 
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:41.077661 tramp-send-command (6) # EMACS=t; export EMACS
15:39:41.469950 tramp-wait-for-regexp (6) # 
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:41.470879 tramp-send-command (6) # INSIDE_EMACS='24.3.50.1,tramp:2.2.7-pre'; export INSIDE_EMACS
15:39:41.863375 tramp-wait-for-regexp (6) # 
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:41.864529 tramp-send-command (6) # PAGER=""; export PAGER
15:39:42.256584 tramp-wait-for-regexp (6) # 
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:42.257286 tramp-send-command (6) # unset correct autocorrect MAILPATH MAILCHECK MAIL HISTORY CDPATH
15:39:42.649572 tramp-wait-for-regexp (6) # 
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:42.650369 tramp-maybe-open-connection (3) # Opening connection for 192.168.0.24#2222 using ssh...done
15:39:42.650989 tramp-send-command (6) # test -d /data/local 2>/dev/null; echo tramp_exit_status $?
15:39:43.042515 tramp-wait-for-regexp (6) # 
tramp_exit_status 0
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:43.050703 tramp-send-command (6) # test -e /data/local 2>/dev/null; echo tramp_exit_status $?
15:39:43.632990 tramp-wait-for-regexp (6) # 
tramp_exit_status 0
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:43.635916 tramp-do-file-attributes-with-ls (5) # file attributes with ls: /data/local
15:39:43.636450 tramp-get-ls-command (5) # Finding a suitable `ls' command
15:39:43.637214 tramp-send-command (6) # (PS1= ; while read d; do if test -x $d/ls -a -f $d/ls; then echo tramp_executable $d/ls; break; fi; done <<'EOF'
/sbin
/system/bin
/system/xbin
EOF
)
15:39:44.222747 tramp-wait-for-regexp (6) # 
tramp_executable /system/xbin/ls
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:44.223980 tramp-send-command (6) # /system/xbin/ls -lnd / 2>/dev/null; echo tramp_exit_status $?
15:39:44.615982 tramp-wait-for-regexp (6) # 
drwxr-xr-x   14 0        0                0 Feb 16 21:57 [1;34m/[0m
tramp_exit_status 0
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:44.617252 tramp-send-command (6) # /system/xbin/ls --color=never -al /dev/null 2>/dev/null; echo tramp_exit_status $?
15:39:45.008828 tramp-wait-for-regexp (6) # 
crw-rw-rw-    1 0        0           1,   3 Feb 16 21:57 /dev/null
tramp_exit_status 0
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:45.010250 tramp-send-command (6) # (test -e /data/local || test -h /data/local) && /system/xbin/ls --color=never -ildn /data/local
15:39:45.401840 tramp-wait-for-regexp (6) # 
    273 drwxr-xr-x    1 2000     2000          2048 Feb 18 14:39 /data/local
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:45.402814 tramp-get-remote-id (5) # Finding POSIX `id' command
15:39:45.403713 tramp-send-command (6) # (PS1= ; while read d; do if test -x $d/id -a -f $d/id; then echo tramp_executable $d/id; break; fi; done <<'EOF'
/sbin
/system/bin
/system/xbin
EOF
)
15:39:45.795762 tramp-wait-for-regexp (6) # 
tramp_executable /system/bin/id
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:45.796639 tramp-send-command (6) # /system/bin/id -u 2>/dev/null; echo tramp_exit_status $?
15:39:46.188531 tramp-wait-for-regexp (6) # 
uid=0(root) gid=0(root) groups=0(root)
tramp_exit_status 0
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:46.189500 tramp-send-command (6) # /system/bin/id -g  2>/dev/null; echo tramp_exit_status $?
15:39:46.778728 tramp-wait-for-regexp (6) # 
uid=0(root) gid=0(root) groups=0(root)
tramp_exit_status 0
///cd75dd09133d48f3a1970966969c4c9a#$
15:39:46.779790 tramp-send-command-and-read (1) # File error: `/system/bin/id -g ' does not return a valid Lisp expression: `uid=0(root) gid=0(root) groups=0(root)
'--8<---------------cut here---------------end--------------->8---

I will send you a trace from emacs -Q soon, but looks like errors are
the same.

> Which ssh implementation do you recommend for Android?

I don't know, I am not android specialist, I have installed
DropBearServer2:

https://play.google.com/store/apps/details?id=me.shkschneider.dropbearserver2&hl=en

It is working fine and is not full of ads like sshdroid.

> I do not want to recommend something which is not acceptable.
>
> Best regards, Michael.

-- 
Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997