remote-tmux

Run commands on a remote server inside a persistent tmux session over SSH.

Updated Mar 23, 2026
One-click install
npx skills add https://github.com/guyru/ai-stuff --skill remote-tmux
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: remote-tmux
Source: https://github.com/guyru/ai-stuff/tree/main/skills/remote-tmux
Command: npx skills add https://github.com/guyru/ai-stuff --skill remote-tmux

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enables running commands on a remote server via SSH inside a persistent tmux session, preserving interactive authentication state and providing real-time visibility of remote execution.

Core Features & Use Cases

  • Persist remote sessions across disconnects so long-running commands stay alive.
  • Observe and interact with remote commands in real time by attaching to the tmux session.
  • Use SSH ControlMaster guidelines to reuse connections and reduce latency during remote operations.
  • Discover, create, and manage a tmux session named agent on the remote host.

Quick Start

Tell me the remote host and session name, then start or attach to the tmux session on that host.

Frequently Asked Questions about remote-tmux

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I keep long-running remote commands alive over SSH after a network disconnect?

Using a persistent tmux session over SSH keeps long-running remote commands alive after a network disconnect. The session preserves the running process and interactive authentication state, allowing you to reattach and observe output in real time.

What is the best way to observe real time output of a remote SSH command?

Running the command inside a remote tmux session and attaching to it provides real time output visibility for SSH commands. You can observe the execution live while the persistent session maintains the environment across disconnects.

Do I need tmux installed on the remote server to run persistent SSH sessions?

Yes, tmux must be installed on the remote server to create or join a persistent session over SSH. The remote host must be accessible via SSH and capable of running tmux to preserve interactive state and running commands.

How do I reduce SSH connection latency when running remote commands repeatedly?

Using SSH ControlMaster guidelines to reuse existing connections reduces SSH latency during repeated remote command execution. This optimization maintains a single active connection for managing persistent tmux sessions and automation tasks.

Can I share a remote execution environment across multiple automation workflows?

Yes, sharing a remote execution environment across automation is possible by creating or joining a named tmux session on the remote host. Multiple automation workflows can interact with the same persistent SSH session and observe output in real time.