From: Michael Albinus <michael.albinus@gmx.de>
To: Arash <pbqbqp@gmail.com>
Cc: 25050@debbugs.gnu.org
Subject: bug#25050: 25.1; Tramp: Trying to connect to an Android device
Date: Mon, 28 Nov 2016 20:06:07 +0100 [thread overview]
Message-ID: <877f7nl90g.fsf@gmx.de> (raw)
In-Reply-To: <8637ib3lcl.fsf@gmail.com>
Arash <pbqbqp@gmail.com> writes:
Hi Arash,
> I'm trying to connect to my Android device which runs SSHelper as ssh
> daemon but tramp hangs on "Tramp: Found remote shell prompt on
> ‘192.168.2.22’".
> I also followed the guide
> (https://www.gnu.org/software/emacs/manual/html_node/tramp/Android-shell-setup.html)
> but it isn't working.
Thanks for the report. Let's see what's up:
> 14:31:08.801416 tramp-send-command (6) # exec ssh -l u0_a82 -o ControlMaster=auto -o ControlPath='tramp.%C' -o ControlPersist=no -e none 192.168.2.22
> 14:31:09.137629 tramp-process-actions (6) #
> SSHelper Version 8.5 Copyright 2014, P. Lutus
> Odroid-c2:3.14.29
> u0_a82@odroidc2:/data/data/com.arachnoid.sshelper/home $
That's good. Tramp is able to connect your Android device via ssh.
> 14:31:09.138347 tramp-send-command (6) # exec env ENV='' HISTFILE=.tramp_history PROMPT_COMMAND='' PS1=\#\$\ PS2='' PS3='' sh
Now Tramp tries to open a local shell. It also tries to set the prompt
to "#$ ".
> 14:31:19.184572 tramp-accept-process-output (10) # *tramp/ssh u0_a82@192.168.2.22* run *tramp/ssh u0_a82@192.168.2.22*
> exec env ENV='' HISTF.xec env ENV='' HISTF
> <^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^HILE=.tramp_history
> PROMPT_COMMAND='' PS1=\#\$\ PS2='' PS3.tramp_history PROMPT_COMMAND=''
> PS1=\#\$\ PS2='' PS3
> <^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H='' sh .
> u0_a82@odroidc2:/data/data/com.arachnoid.sshelper/home $
This fails badly, as we see :-(
For readability, I've replaced the character C-h (code 8) by ^H.
Do you see a chance to use another shell but "sh" on your Android
device? And alternatively, would Tramp's "adb" method an option for you?
Best regards, Michael.
next prev parent reply other threads:[~2016-11-28 19:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-28 11:16 bug#25050: 25.1; Tramp: Trying to connect to an Android device Arash
2016-11-28 19:06 ` Michael Albinus [this message]
2018-09-07 11:31 ` Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877f7nl90g.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=25050@debbugs.gnu.org \
--cc=pbqbqp@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).