all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Tramp access to Android?
@ 2019-01-02 22:14 Skip Montanaro
  2019-01-02 23:01 ` Michael Albinus
  0 siblings, 1 reply; 4+ messages in thread
From: Skip Montanaro @ 2019-01-02 22:14 UTC (permalink / raw)
  To: Help GNU Emacs

Prompted by the discussion about calendar access between Emacs
(presumably running on a "big" computer of some sort) and Android, I
recently tried unsuccessfully to access files on my Android phone from
my Linux laptop. I had installed SimpleSSH on the phone, and can ssh
into it from the shell prompt. Tramp prompts for a password (which is
accepted, I believe), but hangs after finding a remote shell prompt.
Here's the output from my *Messages* buffer:

Tramp: Opening connection for 192.168.97.156#2222 using ssh...
Tramp: Sending command ‘exec ssh  -p 2222 -o ControlMaster=auto -o
ControlPath='tramp.%C' -o ControlPersist=no -e none 192.168.97.156’
Tramp: Waiting for prompts from remote shell...
Tramp: Sending password [2 times]
Tramp: Waiting for prompts from remote shell...done
Tramp: Found remote shell prompt on ‘192.168.97.156’
Tramp: Opening connection for 192.168.97.156#2222 using ssh...failed
Quit [2 times]

tramp-verbose was set to 10. Should I try 11? :-)

Thx,

Skip



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Tramp access to Android?
  2019-01-02 22:14 Tramp access to Android? Skip Montanaro
@ 2019-01-02 23:01 ` Michael Albinus
  2019-01-03  0:49   ` Skip Montanaro
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Albinus @ 2019-01-02 23:01 UTC (permalink / raw)
  To: Skip Montanaro; +Cc: Help GNU Emacs

Skip Montanaro <skip.montanaro@gmail.com> writes:

Hi Skip,

> Prompted by the discussion about calendar access between Emacs
> (presumably running on a "big" computer of some sort) and Android, I
> recently tried unsuccessfully to access files on my Android phone from
> my Linux laptop. I had installed SimpleSSH on the phone, and can ssh
> into it from the shell prompt. Tramp prompts for a password (which is
> accepted, I believe), but hangs after finding a remote shell prompt.
> Here's the output from my *Messages* buffer:
>
> Tramp: Opening connection for 192.168.97.156#2222 using ssh...
> Tramp: Sending command ‘exec ssh  -p 2222 -o ControlMaster=auto -o
> ControlPath='tramp.%C' -o ControlPersist=no -e none 192.168.97.156’
> Tramp: Waiting for prompts from remote shell...
> Tramp: Sending password [2 times]
> Tramp: Waiting for prompts from remote shell...done
> Tramp: Found remote shell prompt on ‘192.168.97.156’
> Tramp: Opening connection for 192.168.97.156#2222 using ssh...failed
> Quit [2 times]
>
> tramp-verbose was set to 10. Should I try 11? :-)

But then I would like to see the complete Tramp debug buffer.

You could set tramp-verbose to any value larger than 10. But Tramp won't
change its behavior, 10 is the largest value it cares about.

Btw, have you tried the "adb" method instead of "ssh", accessing your
Android device?

> Thx,
>
> Skip

Best regards, Michael.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Tramp access to Android?
  2019-01-02 23:01 ` Michael Albinus
@ 2019-01-03  0:49   ` Skip Montanaro
  2019-01-03  9:25     ` Michael Albinus
  0 siblings, 1 reply; 4+ messages in thread
From: Skip Montanaro @ 2019-01-03  0:49 UTC (permalink / raw)
  To: Michael Albinus; +Cc: Help GNU Emacs

[-- Attachment #1: Type: text/plain, Size: 870 bytes --]

Thanks for the quick response Michael. I'm not sure I've ever
encountered a package maintainer (in the Emacs ecosystem or anywhere
else) who is as responsive as you.

> > tramp-verbose was set to 10. Should I try 11? :-)
>
> But then I would like to see the complete Tramp debug buffer.

Ah, missed that. See attached file. BTW, 11 was a joke which maybe
doesn't translate well out of the US:

https://en.wikipedia.org/wiki/Up_to_eleven

> Btw, have you tried the "adb" method instead of "ssh", accessing your Android device?

I was unaware of that. I got an error about not being able to find an
adb command, so found an adb package, installed it, and verified that
I now have /usr/bin/adb. All that did was change the error message,
and I'm not sure where to go with this next. A quick skim of the adb
man page suggests only USB-connected devices are supported.

Skip

[-- Attachment #2: tramp-debug.txt --]
[-- Type: text/plain, Size: 34603 bytes --]

;; GNU Emacs: 25.2.2 Tramp: 2.2.13.25.2 -*- mode: outline; -*-
;; Location: /usr/share/emacs/25.2/lisp/net/tramp.elc Git: nil
18:34:37.123791 tramp-get-file-property (8) # / file-exists-p undef
18:34:37.124012 tramp-get-file-property (8) # / file-attributes-integer nil
18:34:37.124171 tramp-get-file-property (8) # / file-attributes-string nil
18:34:37.124317 tramp-get-connection-property (7) # file-exists undef
18:34:37.124451 tramp-get-file-exists-command (5) # Finding command to check if file exists
18:34:37.124503 tramp-get-connection-property (7) # test undef
18:34:37.124534 tramp-get-test-command (5) # Finding a suitable ‘test’ command
18:34:37.124574 tramp-get-connection-property (7) # process-name nil
18:34:37.124609 tramp-get-connection-property (7) # process-name nil
18:34:37.124640 tramp-get-connection-property (7) # process-buffer nil
18:34:37.124802 tramp-maybe-open-connection (3) # Opening connection for 192.168.86.249#2222 using ssh...
18:34:37.124945 tramp-call-process (6) # ‘locale -a’ nil  *temp*
18:34:37.125849 tramp-call-process (6) # 0
C
C.UTF-8
en_AG
en_AG.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IL
en_IL.utf8
en_IN
en_IN.utf8
en_NG
en_NG.utf8
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZM
en_ZM.utf8
en_ZW.utf8
POSIX
18:34:37.125920 tramp-get-local-locale (7) # locale en_US.utf8
18:34:37.126007 tramp-get-connection-property (7) # login-args undef
18:34:37.126050 tramp-get-connection-property (7) # login-args undef
18:34:37.126121 tramp-get-connection-property (7) # process-name nil
18:34:37.126175 tramp-get-connection-property (7) # process-buffer nil
18:34:37.126492 tramp-set-connection-property (7) # vector [ssh nil 192.168.86.249#2222 / nil]
18:34:37.126550 tramp-maybe-open-connection (6) # /bin/sh -i
18:34:37.126590 tramp-get-connection-property (7) # vector [ssh nil 192.168.86.249#2222 / nil]
18:34:37.126633 tramp-get-connection-property (7) # check-remote-echo nil
18:34:37.126667 tramp-get-connection-property (7) # check-remote-echo nil
18:34:37.126718 tramp-get-connection-property (7) # gateway nil
18:34:37.126990 tramp-accept-process-output (10) # *tramp/ssh 192.168.86.249* run *tramp/ssh 192.168.86.249*
#$
18:34:37.127037 tramp-get-connection-property (7) # check-remote-echo nil
18:34:37.127071 tramp-get-connection-property (7) # check-remote-echo nil
18:34:37.127133 tramp-wait-for-regexp (6) #
#$
18:34:37.127194 tramp-get-connection-property (7) # login-program undef
18:34:37.127235 tramp-get-connection-property (7) # login-args undef
18:34:37.127275 tramp-get-connection-property (7) # login-env undef
18:34:37.127316 tramp-get-connection-property (7) # async-args undef
18:34:37.127354 tramp-get-connection-property (7) # connection-timeout undef
18:34:37.127392 tramp-get-connection-property (7) # gw-args undef
18:34:37.127450 tramp-get-connection-property (7) # temp-file undef
18:34:37.127520 tramp-set-connection-property (7) # temp-file /tmp/tramp.1823WG2
18:34:37.134759 tramp-maybe-open-connection (3) # Sending command ‘exec ssh  -p 2222 -o ControlMaster=auto -o ControlPath='tramp.%C' -o ControlPersist=no -e none 192.168.86.249’
18:34:37.134844 tramp-get-connection-property (7) # process-name nil
18:34:37.134894 tramp-get-connection-property (7) # remote-echo nil
18:34:37.134933 tramp-send-command (6) # exec ssh  -p 2222 -o ControlMaster=auto -o ControlPath='tramp.%C' -o ControlPersist=no -e none 192.168.86.249
18:34:37.134973 tramp-get-connection-property (7) # process-name nil
18:34:37.135013 tramp-get-connection-property (7) # chunksize nil
18:34:37.135052 tramp-set-connection-property (7) # last-cmd-time (23597 22685 135039 162000)
18:34:37.135092 tramp-send-string (10) # exec ssh  -p 2222 -o ControlMaster=auto -o ControlPath='tramp.%C' -o ControlPersist=no -e none 192.168.86.249
18:34:37.135130 tramp-get-connection-property (7) # process-buffer nil
18:34:37.135224 tramp-set-connection-property (7) # first-password-request t
18:34:37.135333 tramp-process-actions (3) # Waiting for prompts from remote shell...
18:34:37.135441 tramp-get-connection-property (7) # gateway nil
18:34:38.119060 tramp-accept-process-output (10) # *tramp/ssh 192.168.86.249* run *tramp/ssh 192.168.86.249*
skip@192.168.86.249's password:
18:34:38.119315 tramp-process-one-action (5) # Looking for regexp "\(.*\(user\|login\)\( .*\)?: *\)\'" from remote shell
18:34:38.119489 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.119633 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.119914 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:\0? *\)\'" from remote shell
18:34:38.120104 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.120240 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.120458 tramp-process-one-action (5) # Call ‘tramp-action-password’
18:34:38.120617 tramp-get-connection-property (7) # first-password-request nil
18:34:38.120778 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.120913 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.121418 tramp-action-password (3) # Sending password
18:34:38.121706 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.121984 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.122402 tramp-get-connection-property (7) # first-password-request t
18:34:38.122967 tramp-set-connection-property (7) # first-password-request nil
18:34:38.123209 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
18:34:38.123379 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.123516 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.123692 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
18:34:38.123837 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.123970 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.124131 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|\r\)[^]#$%>
]*#?[]#$%>] *\(^[\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
18:34:38.124271 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.124403 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.124559 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
18:34:38.124701 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.124831 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.124976 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
18:34:38.125116 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.125248 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.125402 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
18:34:38.125573 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.125706 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.125849 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
18:34:38.125985 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.126142 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.126291 tramp-process-one-action (5) # Call ‘tramp-action-process-alive’
18:34:38.126440 tramp-get-connection-property (7) # gateway nil
18:34:38.127249 tramp-accept-process-output (10) # *tramp/ssh 192.168.86.249* run *tramp/ssh 192.168.86.249*

18:34:38.127547 tramp-process-one-action (5) # Looking for regexp "\(.*\(user\|login\)\( .*\)?: *\)\'" from remote shell
18:34:38.127827 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.128092 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.128444 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:\0? *\)\'" from remote shell
18:34:38.128757 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.129002 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.129362 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
18:34:38.129629 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.129868 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.130137 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
18:34:38.130339 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.130485 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.130637 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|\r\)[^]#$%>
]*#?[]#$%>] *\(^[\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
18:34:38.130782 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.130919 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.131058 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
18:34:38.131200 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.131334 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.131481 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
18:34:38.131626 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.131762 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.131901 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
18:34:38.132049 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.132187 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.132324 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
18:34:38.132466 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.132602 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.132741 tramp-process-one-action (5) # Call ‘tramp-action-process-alive’
18:34:38.132952 tramp-get-connection-property (7) # gateway nil
18:34:38.677124 tramp-accept-process-output (10) # *tramp/ssh 192.168.86.249* run *tramp/ssh 192.168.86.249*

Permission denied, please try again.
skip@192.168.86.249's password:
18:34:38.677367 tramp-process-one-action (5) # Looking for regexp "\(.*\(user\|login\)\( .*\)?: *\)\'" from remote shell
18:34:38.677533 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.677679 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.678071 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:\0? *\)\'" from remote shell
18:34:38.678294 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.678436 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.678629 tramp-process-one-action (5) # Call ‘tramp-action-password’
18:34:38.678791 tramp-get-connection-property (7) # first-password-request nil
18:34:38.678971 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.679113 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.679572 tramp-action-password (3) # Sending password
18:34:38.679863 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.680095 tramp-get-connection-property (7) # check-remote-echo nil
18:34:38.680438 tramp-get-connection-property (7) # first-password-request nil
18:34:53.517467 tramp-set-connection-property (7) # first-password-request nil
18:34:53.517807 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
18:34:53.518019 tramp-get-connection-property (7) # check-remote-echo nil
18:34:53.518222 tramp-get-connection-property (7) # check-remote-echo nil
18:34:53.518432 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
18:34:53.518604 tramp-get-connection-property (7) # check-remote-echo nil
18:34:53.518764 tramp-get-connection-property (7) # check-remote-echo nil
18:34:53.518944 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|\r\)[^]#$%>
]*#?[]#$%>] *\(^[\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
18:34:53.519111 tramp-get-connection-property (7) # check-remote-echo nil
18:34:53.519265 tramp-get-connection-property (7) # check-remote-echo nil
18:34:53.519455 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
18:34:53.519626 tramp-get-connection-property (7) # check-remote-echo nil
18:34:53.519797 tramp-get-connection-property (7) # check-remote-echo nil
18:34:53.519964 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
18:34:53.520132 tramp-get-connection-property (7) # check-remote-echo nil
18:34:53.520288 tramp-get-connection-property (7) # check-remote-echo nil
18:34:53.520478 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
18:34:53.520641 tramp-get-connection-property (7) # check-remote-echo nil
18:34:53.520794 tramp-get-connection-property (7) # check-remote-echo nil
18:34:53.520959 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
18:34:53.521114 tramp-get-connection-property (7) # check-remote-echo nil
18:34:53.521263 tramp-get-connection-property (7) # check-remote-echo nil
18:34:53.521427 tramp-process-one-action (5) # Call ‘tramp-action-process-alive’
18:34:53.521596 tramp-get-connection-property (7) # gateway nil
18:34:53.521895 tramp-accept-process-output (10) # *tramp/ssh 192.168.86.249* run *tramp/ssh 192.168.86.249*

18:34:53.522096 tramp-process-one-action (5) # Looking for regexp "\(.*\(user\|login\)\( .*\)?: *\)\'" from remote shell
18:34:53.522276 tramp-get-connection-property (7) # check-remote-echo nil
18:34:53.522432 tramp-get-connection-property (7) # check-remote-echo nil
18:34:53.522643 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:\0? *\)\'" from remote shell
18:34:53.522846 tramp-get-connection-property (7) # check-remote-echo nil
18:34:53.522999 tramp-get-connection-property (7) # check-remote-echo nil
18:34:53.523219 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
18:34:53.523427 tramp-get-connection-property (7) # check-remote-echo nil
18:34:53.523588 tramp-get-connection-property (7) # check-remote-echo nil
18:34:53.523753 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
18:34:53.523915 tramp-get-connection-property (7) # check-remote-echo nil
18:34:53.524070 tramp-get-connection-property (7) # check-remote-echo nil
18:34:53.524236 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|\r\)[^]#$%>
]*#?[]#$%>] *\(^[\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
18:34:53.524393 tramp-get-connection-property (7) # check-remote-echo nil
18:34:53.524544 tramp-get-connection-property (7) # check-remote-echo nil
18:34:53.524703 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
18:34:53.524871 tramp-get-connection-property (7) # check-remote-echo nil
18:34:53.525026 tramp-get-connection-property (7) # check-remote-echo nil
18:34:53.525193 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
18:34:53.525359 tramp-get-connection-property (7) # check-remote-echo nil
18:34:53.525512 tramp-get-connection-property (7) # check-remote-echo nil
18:34:53.525670 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
18:34:53.525827 tramp-get-connection-property (7) # check-remote-echo nil
18:34:53.525975 tramp-get-connection-property (7) # check-remote-echo nil
18:34:53.526150 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
18:34:53.526308 tramp-get-connection-property (7) # check-remote-echo nil
18:34:53.526465 tramp-get-connection-property (7) # check-remote-echo nil
18:34:53.526624 tramp-process-one-action (5) # Call ‘tramp-action-process-alive’
18:34:53.526788 tramp-get-connection-property (7) # gateway nil
18:34:54.115436 tramp-accept-process-output (10) # *tramp/ssh 192.168.86.249* run *tramp/ssh 192.168.86.249*

:/storage/emulated/0 $
18:34:54.115705 tramp-process-one-action (5) # Looking for regexp "\(.*\(user\|login\)\( .*\)?: *\)\'" from remote shell
18:34:54.115894 tramp-get-connection-property (7) # check-remote-echo nil
18:34:54.116060 tramp-get-connection-property (7) # check-remote-echo nil
18:34:54.116319 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:\0? *\)\'" from remote shell
18:34:54.116533 tramp-get-connection-property (7) # check-remote-echo nil
18:34:54.116695 tramp-get-connection-property (7) # check-remote-echo nil
18:34:54.116929 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
18:34:54.117113 tramp-get-connection-property (7) # check-remote-echo nil
18:34:54.117270 tramp-get-connection-property (7) # check-remote-echo nil
18:34:54.117457 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
18:34:54.117648 tramp-get-connection-property (7) # check-remote-echo nil
18:34:54.117804 tramp-get-connection-property (7) # check-remote-echo nil
18:34:54.117971 tramp-process-one-action (5) # Call ‘tramp-action-succeed’
18:34:54.118192 tramp-get-connection-property (7) # process-buffer nil
18:34:54.118370 tramp-process-actions (6) #
skip@192.168.86.249's password:
Permission denied, please try again.
skip@192.168.86.249's password:
:/storage/emulated/0 $
18:34:54.118545 tramp-get-connection-property (7) # process-buffer nil
18:34:54.119041 tramp-process-actions (3) # Waiting for prompts from remote shell...done
18:34:54.119749 tramp-maybe-open-connection (3) # Found remote shell prompt on ‘192.168.86.249’
18:34:54.120107 tramp-get-connection-property (7) # remote-shell undef
18:34:54.120383 tramp-open-shell (5) # Opening remote shell ‘/bin/sh’...
18:34:54.120792 tramp-get-connection-property (7) # process-name nil
18:34:54.121070 tramp-get-connection-property (7) # remote-echo nil
18:34:54.121314 tramp-send-command (6) # exec env ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS3='' /bin/sh
18:34:54.121601 tramp-get-connection-property (7) # process-name nil
18:34:54.121940 tramp-get-connection-property (7) # chunksize nil
18:34:54.122295 tramp-set-connection-property (7) # last-cmd-time (23597 22702 122186 480000)
18:34:54.122586 tramp-send-string (10) # exec env ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS3='' /bin/sh
18:34:54.122763 tramp-get-connection-property (7) # process-buffer nil
18:34:54.123015 tramp-get-connection-property (7) # check-remote-echo nil
18:34:54.123180 tramp-get-connection-property (7) # check-remote-echo nil
18:34:54.123353 tramp-get-connection-property (7) # gateway nil
18:34:54.135639 tramp-accept-process-output (10) # *tramp/ssh 192.168.86.249* run *tramp/ssh 192.168.86.249*
exec env EN
18:34:54.135914 tramp-get-connection-property (7) # check-remote-echo nil
18:34:54.136095 tramp-get-connection-property (7) # check-remote-echo nil
18:34:54.179647 tramp-get-connection-property (7) # gateway nil
18:34:54.179962 tramp-accept-process-output (10) # *tramp/ssh 192.168.86.249* run *tramp/ssh 192.168.86.249*
exec env ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAN\rec env ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAN                         <\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\bD='' PS1=\#\$\  PS2='' PS\r.tramp_history PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS                         <\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b3='' /bin/sh
18:34:54.180142 tramp-get-connection-property (7) # check-remote-echo nil
18:34:54.180287 tramp-get-connection-property (7) # check-remote-echo nil
18:34:54.180493 tramp-get-connection-property (7) # gateway nil
18:34:54.203451 tramp-accept-process-output (10) # *tramp/ssh 192.168.86.249* run *tramp/ssh 192.168.86.249*
exec env ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAN\rec env ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAN                         <\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\bD='' PS1=\#\$\  PS2='' PS\r.tramp_history PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS                         <\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b3='' /bin/sh
:/storage/emulated/0 $
18:34:54.203746 tramp-get-connection-property (7) # check-remote-echo nil
18:34:54.203917 tramp-get-connection-property (7) # check-remote-echo nil
18:34:54.204155 tramp-get-connection-property (7) # gateway nil
18:34:55.204921 tramp-accept-process-output (10) # *tramp/ssh 192.168.86.249* run *tramp/ssh 192.168.86.249*
exec env ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAN\rec env ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAN                         <\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\bD='' PS1=\#\$\  PS2='' PS\r.tramp_history PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS                         <\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b3='' /bin/sh
:/storage/emulated/0 $
18:34:55.205206 tramp-get-connection-property (7) # check-remote-echo nil
18:34:55.205374 tramp-get-connection-property (7) # check-remote-echo nil
18:34:55.205615 tramp-get-connection-property (7) # gateway nil
18:34:56.206336 tramp-accept-process-output (10) # *tramp/ssh 192.168.86.249* run *tramp/ssh 192.168.86.249*
exec env ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAN\rec env ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAN                         <\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\bD='' PS1=\#\$\  PS2='' PS\r.tramp_history PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS                         <\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b3='' /bin/sh
:/storage/emulated/0 $
18:34:56.206593 tramp-get-connection-property (7) # check-remote-echo nil
18:34:56.206742 tramp-get-connection-property (7) # check-remote-echo nil
18:34:56.206955 tramp-get-connection-property (7) # gateway nil
18:34:57.207666 tramp-accept-process-output (10) # *tramp/ssh 192.168.86.249* run *tramp/ssh 192.168.86.249*
exec env ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAN\rec env ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAN                         <\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\bD='' PS1=\#\$\  PS2='' PS\r.tramp_history PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS                         <\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b3='' /bin/sh
:/storage/emulated/0 $
18:34:57.207920 tramp-get-connection-property (7) # check-remote-echo nil
18:34:57.208070 tramp-get-connection-property (7) # check-remote-echo nil
18:34:57.208283 tramp-get-connection-property (7) # gateway nil
18:34:58.209009 tramp-accept-process-output (10) # *tramp/ssh 192.168.86.249* run *tramp/ssh 192.168.86.249*
exec env ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAN\rec env ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAN                         <\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\bD='' PS1=\#\$\  PS2='' PS\r.tramp_history PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS                         <\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b3='' /bin/sh
:/storage/emulated/0 $
18:34:58.209265 tramp-get-connection-property (7) # check-remote-echo nil
18:34:58.209414 tramp-get-connection-property (7) # check-remote-echo nil
18:34:58.209629 tramp-get-connection-property (7) # gateway nil
18:34:59.210358 tramp-accept-process-output (10) # *tramp/ssh 192.168.86.249* run *tramp/ssh 192.168.86.249*
exec env ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAN\rec env ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAN                         <\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\bD='' PS1=\#\$\  PS2='' PS\r.tramp_history PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS                         <\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b3='' /bin/sh
:/storage/emulated/0 $
18:34:59.210677 tramp-get-connection-property (7) # check-remote-echo nil
18:34:59.210837 tramp-get-connection-property (7) # check-remote-echo nil
18:34:59.211055 tramp-get-connection-property (7) # gateway nil
18:35:00.211747 tramp-accept-process-output (10) # *tramp/ssh 192.168.86.249* run *tramp/ssh 192.168.86.249*
exec env ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAN\rec env ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAN                         <\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\bD='' PS1=\#\$\  PS2='' PS\r.tramp_history PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS                         <\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b3='' /bin/sh
:/storage/emulated/0 $
18:35:00.212002 tramp-get-connection-property (7) # check-remote-echo nil
18:35:00.212150 tramp-get-connection-property (7) # check-remote-echo nil
18:35:00.212364 tramp-get-connection-property (7) # gateway nil
18:35:01.213060 tramp-accept-process-output (10) # *tramp/ssh 192.168.86.249* run *tramp/ssh 192.168.86.249*
exec env ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAN\rec env ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAN                         <\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\bD='' PS1=\#\$\  PS2='' PS\r.tramp_history PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS                         <\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b3='' /bin/sh
:/storage/emulated/0 $
18:35:01.213318 tramp-get-connection-property (7) # check-remote-echo nil
18:35:01.213469 tramp-get-connection-property (7) # check-remote-echo nil
18:35:01.213683 tramp-get-connection-property (7) # gateway nil
18:35:02.214413 tramp-accept-process-output (10) # *tramp/ssh 192.168.86.249* run *tramp/ssh 192.168.86.249*
exec env ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAN\rec env ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAN                         <\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\bD='' PS1=\#\$\  PS2='' PS\r.tramp_history PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS                         <\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b3='' /bin/sh
:/storage/emulated/0 $
18:35:02.214710 tramp-get-connection-property (7) # check-remote-echo nil
18:35:02.214863 tramp-get-connection-property (7) # check-remote-echo nil
18:35:02.215080 tramp-get-connection-property (7) # gateway nil
18:35:03.215740 tramp-accept-process-output (10) # *tramp/ssh 192.168.86.249* run *tramp/ssh 192.168.86.249*
exec env ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAN\rec env ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAN                         <\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\bD='' PS1=\#\$\  PS2='' PS\r.tramp_history PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS                         <\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b3='' /bin/sh
:/storage/emulated/0 $
18:35:03.215999 tramp-get-connection-property (7) # check-remote-echo nil
18:35:03.216149 tramp-get-connection-property (7) # check-remote-echo nil
18:35:03.216365 tramp-get-connection-property (7) # gateway nil
18:35:04.217059 tramp-accept-process-output (10) # *tramp/ssh 192.168.86.249* run *tramp/ssh 192.168.86.249*
exec env ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAN\rec env ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAN                         <\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\bD='' PS1=\#\$\  PS2='' PS\r.tramp_history PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS                         <\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b3='' /bin/sh
:/storage/emulated/0 $
18:35:04.217313 tramp-get-connection-property (7) # check-remote-echo nil
18:35:04.217461 tramp-get-connection-property (7) # check-remote-echo nil
18:35:04.217673 tramp-get-connection-property (7) # gateway nil
18:35:05.218359 tramp-accept-process-output (10) # *tramp/ssh 192.168.86.249* run *tramp/ssh 192.168.86.249*
exec env ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAN\rec env ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAN                         <\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\bD='' PS1=\#\$\  PS2='' PS\r.tramp_history PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS                         <\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b3='' /bin/sh
:/storage/emulated/0 $
18:35:05.218635 tramp-get-connection-property (7) # check-remote-echo nil
18:35:05.218788 tramp-get-connection-property (7) # check-remote-echo nil
18:35:05.219002 tramp-get-connection-property (7) # gateway nil
18:35:05.819177 tramp-open-shell (5) # Opening remote shell ‘/bin/sh’...failed
18:35:05.819720 tramp-maybe-open-connection (3) # Opening connection for 192.168.86.249#2222 using ssh...failed
18:35:05.820003 tramp-get-file-property (8) #  file-truename nil
18:35:05.820233 tramp-flush-directory-property (8) #
18:35:05.820422 tramp-get-connection-property (7) # process-name nil
18:35:05.820576 tramp-get-connection-property (7) # process-name nil
18:35:05.820833 tramp-get-connection-property (7) # vector [ssh nil 192.168.86.249#2222 / nil]
18:35:05.821012 tramp-process-sentinel (5) # Sentinel called: ‘#<process *tramp/ssh 192.168.86.249*>’ ‘killed
’
18:35:05.821176 tramp-flush-connection-property (7) # *tramp/ssh 192.168.86.249* (vector temp-file last-cmd-time)
18:35:05.821361 tramp-get-file-property (8) #  file-truename nil
18:35:05.821501 tramp-flush-directory-property (8) #
18:35:05.839583 tramp-get-connection-property (7) # process-name nil
18:35:05.839810 tramp-flush-connection-property (7) # [ssh nil 192.168.86.249#2222 nil nil] nil
18:35:05.840079 tramp-get-connection-property (7) # process-buffer nil
18:35:05.840381 tramp-file-name-handler (1) # Interrupt received in operation (file-exists-p /ssh:192.168.86.249#2222:/)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Tramp access to Android?
  2019-01-03  0:49   ` Skip Montanaro
@ 2019-01-03  9:25     ` Michael Albinus
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Albinus @ 2019-01-03  9:25 UTC (permalink / raw)
  To: Skip Montanaro; +Cc: Help GNU Emacs

Skip Montanaro <skip.montanaro@gmail.com> writes:

Hi Skip,

>> > tramp-verbose was set to 10. Should I try 11? :-)
>>
>> But then I would like to see the complete Tramp debug buffer.
>
> Ah, missed that. See attached file. BTW, 11 was a joke which maybe
> doesn't translate well out of the US:
>
> https://en.wikipedia.org/wiki/Up_to_eleven

Thanks, I didn't know this.

Thinking about, I should perhaps add a new debug level 42, the next
after 10. With this level, Tramp explains to you what went wrong, and
how you could fix it. New features are added on-the-fly.

This would ease my life :-)

>> Btw, have you tried the "adb" method instead of "ssh", accessing
>> your Android device?
>
> I was unaware of that. I got an error about not being able to find an
> adb command, so found an adb package, installed it, and verified that
> I now have /usr/bin/adb. All that did was change the error message,
> and I'm not sure where to go with this next. A quick skim of the adb
> man page suggests only USB-connected devices are supported.

In theory, adb could go also over the air. I haven't tried it, and
indeed, the default configuration requires USB connection for adb.

Looking at the traces:

> 18:34:37.134933 tramp-send-command (6) # exec ssh  -p 2222 -o ControlMaster=auto -o ControlPath='tramp.%C' -o ControlPersist=no -e none 192.168.86.249
> 18:34:54.118370 tramp-process-actions (6) #
> skip@192.168.86.249's password:
> Permission denied, please try again.
> skip@192.168.86.249's password:
> :/storage/emulated/0 $

The exec call succeeded. You have reached your Android shell, which
shows you the prompt ":/storage/emulated/0 $"

> 18:34:54.121314 tramp-send-command (6) # exec env ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS3='' /bin/sh

Now, Tramp tries to open a local shell, calling /bin/sh. This fails. The
output is

> 18:34:54.203451 tramp-accept-process-output (10) # *tramp/ssh 192.168.86.249* run *tramp/ssh 192.168.86.249*
> exec env ENV='' HISTFILE=~/.tramp_history PROMPT_COMMANec env ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAN                         <\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\bD='' PS1=\#\$\  PS2='' PS.tramp_history PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS                         <\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b3='' /bin/sh
> :/storage/emulated/0 $

This is likely, because Tramp has sent "PS1=\#\$\ ", and it expects a
respective prompt. But the prompt is still ":/storage/emulated/0 $".

There's nothing Tramp could do else. The sshd daemon does not work as
expected on the Android device. Which daemon do you run there? People
have reported they could get it work with Termux or SSHDroid. But I have
no experience with them, 'tho.

> Skip

Best regards, Michael.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-01-03  9:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-02 22:14 Tramp access to Android? Skip Montanaro
2019-01-02 23:01 ` Michael Albinus
2019-01-03  0:49   ` Skip Montanaro
2019-01-03  9:25     ` Michael Albinus

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.