TRAMP should know how to work with Android 2.2 (via DroidSSHd; without env)

Bug #1041474 reported by Ivan Zakharyaschev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Emacs
New
Undecided
Unassigned
emacs23 (Ubuntu)
Undecided
Unassigned

Bug Description

I have installed and started DroidSSHd (http://code.google.com/p/droidsshd/downloads/detail?name=DroidSSHdv06.apk , http://code.google.com/p/droidsshd/ , http://f-droid.org/forums/topic/droidsshd/, http://lekv.de/2012/03/05/ssh-server-for-android/ ) on my Samsung Galaxy S.

(There are simply no other packaged free (= libre) sshd frontends that could be installed and run without root access on my Samsung Galaxy S with Android 2.2 without rooting it.)

DroidSSHd package includes no scp or sftp programs. (But I could transfer some files through ssh 'cat - > filename'.) It lsitens on port 2222.

I wanted to connect to the Samsung Galaxy S with TRAMP in Emacs, C-x C-f /ssh:192.168.1.100#2222:/ , and it doesn't work:

buffer *tramp/ssh 192.168.1.100*:

exec: env: not found
Connection to 192.168.1.100 closed.

Process *tramp/ssh 192.168.1.100* exited abnormally with code 127

from *Messages*:

Loading tramp...done
Tramp: Opening connection for 192.168.1.100#2222 using ssh...
Tramp: Sending command `exec ssh -p 2222 -e none 192.168.1.100'

Tramp: Waiting for prompts from remote shell
Tramp: Sending command `exec ssh -p 2222 -e none 192.168.1.100'
Tramp: Found remote shell prompt on `192.168.1.100'
Tramp: Opening connection for 192.168.1.100#2222 using ssh...done
Tramp: Opening connection for 192.168.1.100#2222 using ssh...
Tramp: Sending command `exec ssh -p 2222 -e none 192.168.1.100'

Tramp: Waiting for prompts from remote shell
Tramp: Sending command `exec ssh -p 2222 -e none 192.168.1.100'
Tramp: Found remote shell prompt on `192.168.1.100'
Tramp: Opening connection for 192.168.1.100#2222 using ssh...done
byte-code: Process has died

Perhaps, we can teach TRAMP how to work with Android 2.2. Perhaps, it shouldn't count on the availability of "env"?

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: emacs 23.3+1-1ubuntu9
Uname: Linux 3.0.27-1-ac100 armv7l
ApportVersion: 2.0.1-0ubuntu11
Architecture: armhf
Date: Sat Aug 25 16:53:23 2012
PackageArchitecture: all
SourcePackage: emacs23
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Ivan Zakharyaschev (imz) wrote :
Revision history for this message
Ivan Zakharyaschev (imz) wrote :
Revision history for this message
Ivan Zakharyaschev (imz) wrote :

Perhaps, we could use the experiance of https://github.com/juergenhoetzel/tramp-adb -- a method for connecting to Android as well, but through adb and USB. But the restrictions of the available tools on the Android side are probably similar in both cases.

Revision history for this message
Ivan Zakharyaschev (imz) wrote :
Revision history for this message
Ivan Zakharyaschev (imz) wrote :

I've learned about FISH -- http://unix.stackexchange.com/a/8735/4319 , http://en.wikipedia.org/wiki/Files_transferred_over_shell_protocol .

It's also a scheme ("protocol") that tries to use only basic Unix utilities for remote access (unlike scp or SFTP). And there was/is even tramp-fish.el (if it hasn't been thrown away -- http://lists.gnu.org/archive/html/emacs-diffs/2009-06/msg00226.html ).

It might work with Android (or not).

Revision history for this message
era (era) wrote :
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers