GNU bug report logs - #25050
25.1; Tramp: Trying to connect to an Android device

Previous Next

Package: emacs;

Reported by: Arash <pbqbqp <at> gmail.com>

Date: Mon, 28 Nov 2016 11:19:02 UTC

Severity: normal

Tags: wontfix

Found in version 25.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


Message #13 received at 25050-done <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Arash <pbqbqp <at> gmail.com>
Cc: 25050-done <at> debbugs.gnu.org
Subject: Re: bug#25050: 25.1; Tramp: Trying to connect to an Android device
Date: Fri, 07 Sep 2018 13:31:17 +0200
Michael Albinus <michael.albinus <at> 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 <at> 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 <at> 192.168.2.22* run *tramp/ssh u0_a82 <at> 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 <at> 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.




This bug report was last modified 6 years and 257 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.