Tag Info

Hot answers tagged

23

Yes, there are a couple of options for this, including: SSHDroid QuickSSHD (see this Google thread for some discussion) Dropbear (see this Droidforums thread for some discussion) SSHelper (free software -- under GPL; it incorporates also code from other projects; might eventually appear in the F-Droid repository) some other free (= libre) software projects ...


12

Since my original question was about an ssh binary, and there is an answer for that, I'll accept that answer. However, there is another way to do what I wanted to do, kinda, that might be interesting to someone some day. Tasker + ConnectBot can be used to execute arbitrary remote (or local, I guess, but Locale Execute is better for that) commands on a ...


9

In adb shell or terminal emulator (and most likely over SSH) you can use the pm utility to install apps. The command is: pm install /sdcard/app1.apk The following are the switches of pm: usage: pm [list|path|install|uninstall] pm list packages [-f] [-d] [-e] [-u] [FILTER] pm list permission-groups pm list permissions [-g] [-f] ...


9

You can install the Terminal Emulator from google. Alternatively there is the Better Terminal Emulator Pro. I tried the Terminal Emulator on a non-rooted phone and it seemed to work fine. Better Terminal Emulator Pro includes the dropbear ssh client, which can be launched from the command line or via a launcher. More info from the authors.


9

Have a look at simulating keyevents on Android and search for "KEYCODE_VOLUME_UP" and "KEYCODE_VOLUME_DOWN". Events can be generated by executing "input": #local shell: input keyevent 24 #vol up input keyevent 25 #vol down #remotely using ssh ssh your-phone input keyevent 24 #vol up ssh your-phone input keyevent 25 #vol down # 'su -c command' to make it ...


5

The ConnectBot developers recommend Full Keyboard to issue keyboard shortcuts. But there are also other keyboards.


5

It's not quite as seamless, but the ssh binary provided by busybox (mine, at least) supports the -i flag, so you can put the key wherever you want and use that: ssh -i /path/to/key_file joeuser@somehost.com The relevant man page entry for -i (with the caveat that the information about the default path may not be the same on Android): -i identity_file ...


5

ES File Explorer is one that can use the secure FTP protocol over ssh protocol. To get the settings, from ES File Explorer: Hit menu key, Show Tabs, Local, LAN, FTP, NET appears Tap on FTP Then tap on New that appears underneath, a dialog box will appear prompting the different FTP types, tap on SFTP Enter the details of the ssh server that hosts the ...


5

Like Sachin Shekhar said, you must use the following command : am start -a android.intent.action.MAIN -n <package_name>/<full_class_name> See a concrete example : getting the apk file from your Android device or any Market places running this command : aapt dump xmltree com.android.settings*.apk AndroidManifest.xml I would like to start ...


4

Apparently X11 can be run on the G1 via some sort of Debian image and shell app; see this XDA thread for example. I can't find any other ports of it. I use ConnectBot for "regular" SSH, I find it to be quite good. Even edited and compiled code with it!


4

The Android Debug Bridge (adb) can do pretty much everything you want. It is part of the Android SDK, just download the SDK and enable USB debugging on your phone. You can get a shell with the command adb shell and you can get files from the phone with adb pull All the commands are documented in the first link I gave. Another way to get any file ...


4

SSHDroid does not need root, it's optional. Every App can bind a socket on an not privileged port (>1024). I am pretty sure that your ssh client parameters are wrong, the port especially. AFAIK you can't add the port via : to the hostname. Try ssh root@ipofandroid -p 2222 instead. If you need more verbose output of the ssh binary, start it with -v, -vv ...


4

Use this: am start -a android.intent.action.MAIN -n <package_name>/<full_class_name> To control an app, you'll have to put correct values of <package_name> and <full_class_name> in the command. For example, you can use com.google.gmail/com.google.gmail.check_mail (Hypothetical names) as last part of command. Obtaining package name ...


3

Install & run ConnectBot (a dedicated SSH client). Tap/press menu key. From the menu, tap Manage Pubkeys. On next screen, again press/tap menu key. From the menu, tap Import.


3

I use ssh in a terminal. $ ls -l .ssh -rw------- 1 10106 10106 427 Jan 8 07:39 id_rsa -rw-rw-rw- 1 10106 10106 319 Jan 8 07:39 id_rsa.pub ... $ pwd /data/data/com.magicandroidapps.bettertermpro/home So the private key is protected simply by the unix filesystem and Android's user-per-app design: only Better Terminal Emulator ...


3

You need to run an SSH server on your phone, such as SSHDroid. You can launch adb shell from SSHDroid, and then run am start -a android.intent.action.MAIN -n <qualified-app-name>. For example, <qualified-app-name> is something like com.android.settings/.Settings.


3

It sure is possible if the app you want to send through the tunnel allows you to specify the host and port to connect to. e.g. if you use a remote desktop client you could use connectbot to ssh into your home server, set up a tunnel on the appropriate port, and then use the rdp client to connect to localhost in order to use that tunnel. Cyanogenmod does ...


3

I know it's an old thread but wanted to +1 the comment about BTEP I'm also using BTEP's ssh binary though I just call it from it's path instead of linking it /data/data/com.magicandroidapps.bettertermpro/bin/ssh root@192.168.1.1 or generate a pair of keys and use public key authentication /data/data/com.magicandroidapps.bettertermpro/bin/ssh -i ...


2

I recommend ConnectBot for SSH. My biggest issue with Vim has always been getting the Escape key to work. By default, I believe the Escape key is the same as the Back key in Android. One answer I found on stackoverflow (can't find the link) is to map a key sequence to escape: :imap qq <Esc> " map qq to Escape while in insert mode This should allow ...


2

So, I have a Nexus One. Firstly: do not try to use the soft keyboard for any form of coding. It's workable, to an extent, with connectbot's help, for system administration, but coding is flat out. If you insist on trying, look at Full Keyboard. Secondly: the screen size is an issue, at least for me. I haven't found a font size that is both readable for ...


2

Try this: Take/generate a public key of your Android device. Don't you ever hardcode your password into scripts :) Put it into .ssh/authorized_keys on main computer Then use "from=" mask to limit IP/hostname to your LAN, like from="192.168.1.*". If IP range won't work, set up a fixed hostname for MAC address of your device on WLAN. Some AP firmwares, ...


2

This was solved thanks to Bossman's awesome proxy APK. Install it and then run via SSH: am broadcast -a pl.bossman.taskerproxy.ACTION_TASK --es task_name TASKER_TASK_NAME_GOES_HERE It works flawlessly :)


2

If you are looking for a GUI you should take a look onto Droid Explorer. Basically it is a graphical frontend for adb especially developed for rooted phones. I know that it runs under Windows (.net) but AFAIR it also runs Linux using Mono.


2

Apps must be coded specifically to allow for installation on Google TV devices. In 3.2 update, Google even disabled side-loading of apps, so the old trick from 2.x days to install APKs via a dropbox account won't work. Modders from GTVhacker site managed to find an exploit in Sony units that allows for installing a custom kernel and a rooted build of 3.2. ...


2

The reason for using SFTP over USB is speed and convenience. MTP is unsatifactory, and transfering files over WiFi is slow. For those of you who have my setup (GSM Galaxy Nexus with Cyanogenmod 9 RC2 or later) here's how to manage files on your device with maximum convenience and speed. Install DigiSSHd (and DigiControl) on phone connect phone to PC via ...


2

I realize this question is a bit old and therefore the original poster may no longer benefit from this answer, but I'ma try anyhow, just in case anyone else has this exact same question. I have this working flawlessly (as far as I can tell) on a small Emerson Android tablet (EM543) and on a Samsung Moment phone, both using DropBear, however it took a bit of ...


1

This doesn't happen when you run ssh as root. /sdcard is an unsafe(!) location for ssh client config and valuable keys (some users don't even encrypt their keys for reasons of laziness). Each app has read access to that location, so this is most probably set deliberately not to /sdcard/.ssh for security reasons. If you have root access, create a symlink ...


1

If your phone is rooted, you have the option of placing the key in a 'protected' area in which any application requesting to access the file would need to be given root access by you. This provides very little protection in the case of an attacker gaining physical access to your phone. You can also create a key that requires a pass-phrase to be entered ...


1

Your android box running SSHDroid, just activate it. Your Linux Box (GUI) you can run any SSH FTP compliance (Nautilus, Filezilla, etc...) For ex. I use FileZilla ... just type on host : sftp://your.android.box.ip-address on user name : root on password : admin on port : 2222 Just select "OK" button whatever appears on your screen. Note : you must on ...


1

You can also use an SSH server without a frontend app -- starting it with a command or through a configuration file, as described in Howto: Connect to Device with SSH. According to that page, CyanogenMod included an SSH server (dropbear) in some releases. ("Cyanogenmod 9.0 RC2 no longer includes Dropbear.") Or you could probably put it into your system ...



Only top voted, non community-wiki answers of a minimum length are eligible