


Client: It’s is very computer on which you use a command-line terminal to issue an ADB command.

The BTEP binary is in /data/data/com.magicandroidapps. If it doesn't work, try putting it in a script and using Locale Execute to run the script.Īlso, I have had problems with the ssh binary that is on the phone and found that moving it from /system/xbin and creating a link at /system/xbin/ssh to the Better Terminal Emulator ssh binary is more reliable. Locale Execute can be picky about what commands it will run. Except for the delay, it looks the same as executing the command(s) locally and can be used the same. You can run commands with options, pipes, redirects etc, but it's sometimes better to keep them simple. That executes the command on the remote machine without logging you in. To only execute a command on a remote computer, just add it in single quotes: ssh -i /PATH/TO/KEY 'command' Once you set up keys, your general ssh command would look something like this: ssh -i /PATH/TO/KEY can put that in a script, run it, and you will be logged in to the remote machine.īut here's what I think you're wanting to do. There are a million how-tos on the web, but there's a page on the Cyanogen wiki that might be more suited to Android users. To call ssh from a script, all you need to do is set up ssh keys. Step 3: Use this Task in Tasker however you would normally. Connectbot should open and your commands should execute on the remote host. The alias, user and host here must match the alias you set up in Step 1. Data: ssh url, in the form of (without the quotes).Step 2: Create a Tasker Task to call connectbot. I suggest using something like "echo hello" as a test until you are sure things are working, and "exit" at the end if you don't want to leave the connection open. Make sure there is a blank line at the end so that enter is sent after your last command. Once the connection actually works, you can use "Post-login automation" to add the remote commands you would like to run.You probably want to set up an ssh key without a password so that you can use this for automation.Long Press and select "Edit Host" to perform these changes. You have to rename one first (away from in order to create the second. You can have duplicate connections in ConnectBot as long as they have different aliases.Step 1: Set up your connection in ConnectBot. Tasker + ConnectBot can be used to execute arbitrary remote (or local, I guess, but Locale Execute is better for that) commands on a schedule. However, there is another way to do what I wanted to do, kinda, that might be interesting to someone some day. Since my original question was about an ssh binary, and there is an answer for that, I'll accept that answer.
