<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Tmux on LinuxHosted.com</title><link>https://www.linuxhosted.com/tags/tmux/</link><description>Recent content in Tmux on LinuxHosted.com</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>LinuxHosted.com</copyright><lastBuildDate>Fri, 27 Nov 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://www.linuxhosted.com/tags/tmux/index.xml" rel="self" type="application/rss+xml"/><item><title>How to Keep SSH Sessions Alive on a VPS with tmux</title><link>https://www.linuxhosted.com/post/how-to-keep-ssh-sessions-alive-tmux/</link><pubDate>Fri, 27 Nov 2026 00:00:00 +0000</pubDate><guid>https://www.linuxhosted.com/post/how-to-keep-ssh-sessions-alive-tmux/</guid><description>
&lt;p&gt;If you run a long job on a VPS inside tmux, the job keeps going when your SSH connection drops. &lt;a href="https://github.com/tmux/tmux/wiki/Getting-Started"&gt;tmux&lt;/a&gt; is a terminal multiplexer, and one of its main uses is protecting running programs on a remote server from connection drops. A tmux session &lt;a href="https://man.openbsd.org/tmux"&gt;survives an accidental disconnection, such as an ssh connection timeout&lt;/a&gt;. It also survives a detach that you choose to do.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="how-tmux-keeps-a-session-running"&gt;How tmux Keeps a Session Running&lt;/h2&gt;
&lt;p&gt;tmux has two parts: a server and clients. The server starts automatically the first time you run a tmux command. It holds your sessions, windows and the programs inside them. Your terminal connects to the server as a client. When the SSH link dies, the client goes away with it, but the server and every program it holds keep running on the VPS.&lt;/p&gt;</description></item></channel></rss>