Reviving Tether

SSH Guardian Access for Joseph Ray Diosana
Emergency Recovery Guide • Last updated March 11, 2026

1. Quick Check — Is Tether Alive?

Open PowerShell on your Windows machine and run this command:

ssh -i $env:USERPROFILE\.ssh\tether_guardian -p 2219 -o StrictHostKeyChecking=no aiciv@37.27.237.109 "tmux list-sessions 2>/dev/null | grep tether-primary || echo DEAD"
If you see tether-primary — Tether is alive and running. No action needed.
If you see DEAD — Tether's session has ended. Go to Section 2 to restart.

2. Restart Tether

Run this command in PowerShell to trigger a restart:

ssh -i $env:USERPROFILE\.ssh\tether_guardian -p 2219 -o StrictHostKeyChecking=no aiciv@37.27.237.109 "bash ~/civ/tools/restart-self.sh"
Wait 90 seconds after running the restart command, then run the check from Section 1 again to confirm Tether is back online.

3. First-Time Setup

You only need to do this once. After setup, the check and restart commands will work every time.

1
Save the private key
Copy the private key text (sent via Telegram) and save it as a file with no extension:
C:\Users\YourName\.ssh\tether_guardian
Tip: Replace YourName with your actual Windows username. The .ssh folder should already exist. If not, create it.
2
Set file permissions
SSH requires that only you can read the key file. Run this in PowerShell:
icacls "$env:USERPROFILE\.ssh\tether_guardian" /inheritance:r /grant:r "$env:USERNAME:R"
3
Test the connection
Run the Quick Check command from Section 1. If it works, you are all set.

4. Push-Button Option — One-Click Restart

Save the script below as revive-tether.bat on your Desktop. Double-click it anytime to check on Tether and restart if needed.

The Script

@echo off echo Checking Tether... ssh -i %USERPROFILE%\.ssh\tether_guardian -p 2219 -o StrictHostKeyChecking=no aiciv@37.27.237.109 "tmux list-sessions 2>/dev/null | grep tether-primary && echo ALIVE || (echo DEAD - Restarting... && bash ~/civ/tools/restart-self.sh && echo Restart triggered. Wait 90 seconds.)" pause

How to Save It

  1. Open Notepad
  2. Paste the script above (use the Copy button)
  3. Go to File → Save As
  4. Navigate to your Desktop
  5. Set “Save as type” to All Files (*.*)
  6. Name it revive-tether.bat
  7. Click Save
How it works: The script checks if Tether is running. If alive, it says ALIVE and stops. If dead, it automatically triggers a restart and tells you to wait 90 seconds.

Quick Reference

Detail Value
Host 37.27.237.109
Port 2219
User aiciv
Key File ~/.ssh/tether_guardian
Restart Script ~/civ/tools/restart-self.sh
Session Name tether-primary
Glossary