[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tramp (2.1.20); learn how to work with Android 2.2 via DroidSSHd

From: Thierry Volpiatto
Subject: Re: tramp (2.1.20); learn how to work with Android 2.2 via DroidSSHd
Date: Wed, 20 Feb 2013 14:41:19 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Hi Michael,

Michael Albinus <address@hidden> writes:

> Michael Albinus <address@hidden> writes:
>>> Hello!
> Hi Ivan,
>>> I'm reporting a possible enhancement in TRAMP, so that no error
>>> happens when we try to connect to Android, and so that TRAMP can work
>>> with Android over SSH.
>>> Now it breaks when it tries to call "env". It could detect this kind
>>> of system on the remote end, and work around the missing commands.
>>> More details about my case are published here:
>>> Or a special method for Android over SSH could be devised, perhaps
>>> based on , because I
>>> suppose the restrictions of the set of available commands are similar
>>> -- whether we connect via adb or ssh.
>> Sounds like a good idea. It could be even just an enhancement to the
>> plain "ssh" method and friends. It could detect, whether on the remote
>> side a restricted shell is running, which does not understand all
>> commands (Tramp does it already for remote busyboxes).
> I found some time for playing with this. Finally, I could make it work
> on my Nexus S, running Android 4.1.2. On the device I've installed
> SSHDroid 1.9.6. Works fine, as far as I can see.
> I did need to tweak some Tramp settings, that's why it works only with
> recent Tramp 2.2.7-pre from Tramp's git repository. There are also some
> setup hints in tramp.texi. In case you want to play with ...

It finally worked fine using a shortcut in ~/.ssh/config by adding to

(add-to-list 'tramp-connection-properties
             (list (regexp-quote "zte") "remote-shell" "sh"))

Where "zte" is the ssh shortcut.

Probably you should mention in documentation that the shortcut have to
be added there in addition of the real url of host.

I will look ASAP if I can make it working with another server like


Get my Gnupg key:
gpg --keyserver --recv-keys 59F29997 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]