all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Arash <pbqbqp@gmail.com>
Cc: 25050-done@debbugs.gnu.org
Subject: bug#25050: 25.1; Tramp: Trying to connect to an Android device
Date: Fri, 07 Sep 2018 13:31:17 +0200	[thread overview]
Message-ID: <874lf135oa.fsf@gmx.de> (raw)
In-Reply-To: <877f7nl90g.fsf@gmx.de> (Michael Albinus's message of "Mon, 28 Nov 2016 20:06:07 +0100")

Michael Albinus <michael.albinus@gmx.de> 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?

No reaction for months, I'm closing this bug as wontfix. Feel free to
reply if you want to continue to investgate.

Best regards, Michael.





      reply	other threads:[~2018-09-07 11:31 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
2018-09-07 11:31   ` Michael Albinus [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874lf135oa.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=25050-done@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 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.