Skip to content

Tasker + ZestSSH Automation Guide

This guide walks you through setting up Tasker to automate SSH operations with ZestSSH on Android. By the end, you will have working automation that triggers SSH commands based on events on your device.

  • ZestSSH (Pro) installed on your Android device.
  • Tasker installed.
  • At least one saved connection in ZestSSH.
  • An API key created in ZestSSH.
  1. In ZestSSH, go to Settings > Automation > API Keys.
  2. Tap Create New Key.
  3. Label it “Tasker” and set an expiration date.
  4. Copy the key and save it securely.
  1. Open Tasker and go to the Tasks tab.
  2. Tap + to create a new task. Name it “Server Uptime Check”.
  3. Tap + to add an action.
  4. Search for ZestSSH in the plugin list and select it.
  5. Configure the action:
    • Connection: Select your server.
    • Command: uptime
    • API Key: Paste your API key.
  6. Tap the back button to save.
  7. Test the task by tapping the Play button.

Run a health check every day at 8 AM:

  1. Go to the Profiles tab.
  2. Tap + > Time.
  3. Set From to 08:00 and To to 08:00.
  4. Select your “Server Uptime Check” task.
  5. The profile is now active and will trigger daily.

Connect to your home server when you join your home Wi-Fi:

  1. Tap + > State > Net > Wifi Connected.
  2. Enter your home Wi-Fi SSID.
  3. Link it to a task that connects to your home server and runs a status check.

Send a shutdown command when your phone battery is critically low:

  1. Tap + > State > Power > Battery Level.
  2. Set the range to 0-5%.
  3. Create a task that SSHs into your server and runs a graceful shutdown or alert command.

Create a task with multiple ZestSSH actions to run a sequence of commands:

  1. Action 1: Connect and run sudo apt update
  2. Action 2: Run sudo apt upgrade -y
  3. Action 3: Run sudo reboot

You can pass Tasker variables into ZestSSH commands:

  • %DATE — current date
  • %TIME — current time
  • %WIFII — current Wi-Fi info
  • Custom variables from other Tasker actions
  • Test each task manually before attaching it to a profile.
  • Use Tasker’s notification actions to confirm when SSH tasks complete.
  • Set reasonable API key expiration dates and rotate keys periodically.
  • Be careful with destructive commands (shutdown, reboot) in automated profiles — add confirmation steps if needed.