I would like to check if one of my servers is accessible through SSH so I try any of these:
/data/data/com.magicandroidapps.bettertermpro/bin/ssh -i /data/data/com.magicandroidapps.bettertermpro/home/.ssh/server1 -p 22 -l root 192.168.1.251 "echo bla"
this should return bla
Hi Pent,did some tests with 1.3.4b1 regarding the stuff below:I would like to check if one of my servers is accessible through SSH so I try any of these:
/data/data/com.magicandroidapps.bettertermpro/bin/ssh -i /data/data/com.magicandroidapps.bettertermpro/home/.ssh/server1 -p 22 -l root 192.168.1.251 "echo bla"
this should return bla
when I run it from Tasker with or without Root checked I get empty results if I FlashOutput: %resultError: %stderrResult: 0when I copy/paste the whole command in the Android Terminal Emulator I get: blais it possible that Tasker shows the result of Run Shell and doesn't get the output of the ssh binary where Terminal does?I added a log..I hope there is an easy fix :)have a nice sunny Sunday :)grtz,
W.
#!/bin/sh
RES=`/path/to/ssh -i /path/to/key user@host "/path/to/script"` ;
echo $RES ;
exit
Note the semicolons, and the path to ssh.
Tom