Enhancement:
I'm trying to automate SSH tunneling for certain apps using Tasker. So far I've
managed to get it connected using an action intent as described in the thread
linked below. Now it would be sweet if I also could get it to disconnect and
exit when I exit my app instead it running in the background until I remember
to shut it down.
This is how I launch the tunnel from Tasker;
Action:android.intent.action.VIEW Cat:Default Data:ssh://user@host/#nickname
Extra: Extra: Target:Activity
It would be sweet to be able to send a similar disconnect/exit command to
ConnectBot from Tasker.
thread: ConnectBot - establish SSH tunnel and subsequently disconnect
https://groups.google.com/forum/#!topic/tasker/Au-fEJ9qork
For anyone interested in automatically starting a tunnel these are the steps;
Setup a host with port forwards in ConnectBot.
Create key in ConnectBot with blank password and load key at startup.
Insert the public key in the ~/.ssh/authorized_keys at the server.
In Tasker create a Misc/Send Intent using Action: android.intent.action.VIEW
Category:Default Data:ssh://username@server:port/#nickname Target:Activity.
Leave other options at default, make sure username@server:port/#nickname
matches your host in ConnectBot.
(On the server I'm using a specific sshuser which has very limited access due
to security concerns, use the above with caution.)
Original issue reported on code.google.com by petter.e...@gmail.com on 5 Sep 2012 at 1:35
Original issue reported on code.google.com by
petter.e...@gmail.com
on 5 Sep 2012 at 1:35