Persistent SSH tunnels for Android

Set up port forwarding or a SOCKS proxy once, and SSHTunnelKeeper keeps it connected — through network drops, Wi-Fi ↔ mobile switches and silent servers. Like autossh, in your pocket.

  • -L local
  • -R remote
  • -D SOCKS
  • ServerAliveInterval
Coming soon to Google Play Contact support
Main screen with three tunnels: two connected with live traffic, one retrying

Everything a tunnel needs

The familiar OpenSSH options, plus the things a phone needs to keep a connection alive.

All forwarding modes

Local (-L), remote (-R) and dynamic (-D) forwarding. SOCKS4, 4a and 5, with DNS resolved on the server. Several tunnels at once.

Never hangs

Every connection attempt has a hard deadline, a watchdog drops silent links, and reconnection is endless with exponential backoff.

Always on

A persistent notification shows status, uptime and traffic. Tunnels come back after the system kills the app, after a reboot and after updates.

Keys and host keys

Password or private key: OpenSSH, PEM and PuTTY; RSA, ECDSA and Ed25519. Generate an Ed25519 key in the app. Server keys are pinned on first use.

Paste your ssh command

Import an existing ssh or autossh command line: -p -l -L -R -D -C -o, user@host and ssh:// are understood.

Private by design

No accounts, ads or analytics. The app talks only to your SSH servers. Profiles and keys stay on the device and are excluded from backups.

How it stays connected

Mobile networks fail in quiet ways: a TCP connection that never completes, a handshake that stalls, a link that stops passing data without closing. SSHTunnelKeeper is built around those cases.

  1. Hard deadlinesDNS, TCP connect, handshake, authentication and forward setup run with a deadline. A stuck attempt is abandoned and a new one starts.
  2. Independent watchdogBesides SSH keepalives (ServerAliveInterval, ServerAliveCountMax), the connection is closed if nothing arrives from the server for too long.
  3. Endless reconnectionExponential backoff between your minimum and maximum delay, with jitter. A link that lived long reconnects right away.
  4. Network awarenessSwitching between Wi-Fi and mobile data reconnects immediately; with no network the tunnel waits quietly instead of burning battery.

Screenshots

Dark theme shown; the app follows the system light or dark setting.

Tunnel list with status and traffic
Tunnels with live status
Persistent notification with uptime, traffic and Reconnect / Stop buttons
Always-on notification
Tunnel editor with forwarding rules and keepalive settings
Forwarding and keepalives
Import dialog with an autossh command
Import an ssh command
Tunnel log showing a dropped link and reconnection
Clear logs

FAQ

Do I need my own server?

Yes. SSHTunnelKeeper is an SSH client: it connects to an OpenSSH (or compatible) server that you run or have access to. There is no built-in service.

Tunnels stop when the phone is idle. What should I do?

Turn off battery optimization for the app (the yellow banner on the main screen opens the right settings page). On Xiaomi, Huawei, Samsung, OnePlus and similar phones also allow autostart and “unrestricted” background activity.

I use a VPN app that routes traffic through this tunnel's SOCKS proxy, and everything stops.

That is a loop: the SSH connection itself goes into the VPN, and the VPN goes into the tunnel. Exclude SSHTunnelKeeper from the VPN (per-app bypass) or route your SSH server's address directly.

Can other devices use my phone's forwarded ports?

By default ports listen on 127.0.0.1. Use * as the bind address (for example L *:8080:host:80) to listen on all interfaces. Ports below 1024 are not available on Android without root.

Does the app collect any data?

No. There are no accounts, ads, analytics or crash reporting, and no servers of ours involved. See the privacy policy.

Which Android versions are supported?

Android 8.0 and newer. The interface is available in English and Russian.