SShortSingh.
Back to feed

Why SSH sessions freeze after idle periods, and how keepalives and tmux help

0
·2 views

A developer setting up their first remote server found an overnight SSH session frozen, with keystrokes and Ctrl+C having no effect. Idle connections can be silently dropped by routers or NAT devices, leaving the local client unaware the link is dead. The article explains how to escape a stuck session using SSH escape sequences and how to configure keepalive settings in the SSH config file to detect dead connections sooner. It also notes that disconnections can kill running processes, and recommends tmux, which keeps commands alive on the server and allows reattaching after a drop. The author concludes that keepalives and tmux solve different problems and are best used together.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Developer Builds AP Agent With Hindsight Memory That Learns When to Escalate

An accounts-payable desk typically resolves recurring invoice exceptions, such as a monthly steel price adjustment, by checking the contract and approving the charge each time. The author built Ledgerwise, which uses deterministic matching to find discrepancies and an agent to decide them based on how similar exceptions were resolved before. Early versions that simply approved whatever memory suggested failed on a large fuel surcharge that exceeded the contractual cap, prompting a redesign around whether memory is sufficient for a given case. The agent now stores each human decision along with the reason and magnitude, using Hindsight, an open-source agent memory system from Vectorize. The system auto-resolves when precedent is consistent and otherwise escalates with the relevant prior decisions attached.

0
ProgrammingDEV Community ·

Meta Acquires Conductor as GitHub Details Infrastructure for AI Coding Agents

Meta has acquired Conductor, a startup whose tools let developers coordinate several AI coding agents working in parallel workspaces. The approach splits work such as frontend, backend, testing, and documentation across agents rather than relying on a single assistant. Separately, GitHub described a new Git storage architecture after internal tests reporting support for 5,000 concurrent agents on one repository and 7,200 pushes per second. These are internal test figures, not evidence of current everyday repository traffic, but they signal expected growth in automated activity. Analysts note that coordinating agents raises challenges such as conflicting changes, shared dependencies, and heavier review workloads.

0
ProgrammingDEV Community ·

Practical Cisco CCNA Lab Guide Covers Essential Router Configuration Basics

A new guide aimed at Cisco CCNA (200-301) candidates argues that hands-on lab practice is essential for turning networking theory into usable skill. It recommends simulation tools such as Cisco Packet Tracer, GNS3, and EVE-NG for building a virtual environment. The walkthrough focuses on the initial configuration steps every engineer should apply to enterprise routers. It begins with securing control-plane access before any traffic is routed, including setting a hostname and an enable secret password.

0
ProgrammingDEV Community ·

Linkit: a free desktop bookmark manager that summarizes and searches saved links by meaning

The developer built Linkit, a free desktop bookmark manager, after finding saved links hard to revisit. Unlike browser bookmarks, which store only a URL, Linkit fetches and summarizes each saved page and extracts key takeaways. Its search matches on meaning via embeddings, so queries don't need the exact wording, and a knowledge graph visualizes how saved items connect. The app also offers AI-curated collections, duplicate detection, background link health checks, and periodic curation insights, with support for OpenAI-compatible APIs or local models through Ollama. Recent updates add interface scaling tied to the system display, safer storage switching, and rollback-capable import and export.