persist-ssh
@readwithai - X - blog - machine-aided reading - 📖⚡️🖋️
Persist ssh connections without breaking terminal scrollback.
Motivation
I use tmux locally but sometimes ssh into a server to do work. It gets annoying when ssh connectios fail so I want to persist shells on remote machines. The standard approach is to use a multiplexer like tmux, zellij or screen. However, these tools tends to break scrollback and it's a bit weird have a terminal multiplexer within another terminal multiplexer. I want something simpler which does not break scrollback.
dtach is such a tool. It is a lightweight detacheable connection to a running process.
Installation
You can install persist-ssh using pipx.
pipx install persist-ssh
Usage
persist-ssh server
This will install mosh and dtach remotely. You can press Ctrl+t to detach. persist-ssh wil then reattach to the session by default.
I use persist-ssh with tmux so like to use the name of my tmux window for the remote session. For tis you can use the --tmux option or by adding session_from_tmux_pane = false to ~/.config/persist-ssh.toml.
About me
I am @readwithai. I create tools for reading, research and agency sometimes using the markdown editor Obsidian.
I also create a stream of tools that are related to carrying out my work.
I write about lots of things - including tools like this - on X. My blog is more about reading and research and agency.
Metadata
Release files for persist-ssh 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| persist_ssh-1.0.3.tar.gz | 16.7 kB | Without provenance | Details for persist_ssh-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| persist_ssh-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for persist_ssh-1.0.3-py3-none-any.whl |
Total release size: 34.3 kB
Release files / persist_ssh-1.0.3.tar.gz
| Download URL | persist_ssh-1.0.3.tar.gz |
|---|---|
| Size | 16.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c7d8c602b695348b449a48b5efb39c73722c7355789e84b5c51a3117a6245b07
|
|
BLAKE2b-256 checksum How to use checksums |
c92eb8975d127019b0507875287000545f4b75f739ed703ce0974e398522d079
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / persist_ssh-1.0.3-py3-none-any.whl
| Download URL | persist_ssh-1.0.3-py3-none-any.whl |
|---|---|
| Size | 17.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
226b590e29e47b48edc6ba1c421c3c6981872b598f96d2d36b3bb64e515c5113
|
|
BLAKE2b-256 checksum How to use checksums |
e997f1758abd08eb6b91165476dd4f9380d87649c0e9218631a23e25ac5e2842
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for persist-ssh 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.