<div dir="ltr"><div>That's actually one of the features that sold me on tmux..  I've been regularly working on a particular server at work and I had to setup several panes so that I could monitor activity concurrently.  Unfortunately our VPN at work sometimes drops the connection.  I was going in and resetting all the panes each time, until I found out that I could reactivate my previous session, with the right panes setup, using 'tmux attach', and whammo: there's all my panes setup just the way they were before.</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Sep 10, 2022 at 3:52 PM John Sellens <<a href="mailto:jsellens@syonex.com">jsellens@syonex.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Just in case anyone is interested, I'll mention my little tool<br>
that I use constantly every day:<br>
<br>
    sshp - simple persistent ssh connections using screen<br>
    <a href="https://github.com/jsellens/sshp" rel="noreferrer" target="_blank">https://github.com/jsellens/sshp</a><br>
<br>
I constantly have xterm windows with ssh connections open to remote<br>
machines.  If I put my local machine to sleep, or it crashes, or<br>
my connection goes out, those connections used to drop and I would<br>
lose all remote context.<br>
<br>
I put sshp together after I started working (pretty much) only from<br>
home, in large part so I could sleep my desktop when I'm not working,<br>
and not have to restart all my connections.<br>
<br>
It works by transparently starting a screen on the remote end, and<br>
connecting/re-connecting to that screen session as needed.  I use<br>
screen, and not tmux (habit), but I suspect it could be modified to<br>
use tmux on the remote side if someone were keen.<br>
<br>
Hope some of you might find it handy.<br>
<br>
Cheers<br>
<br>
John<br>
<br>
_______________________________________________<br>
kwlug-disc mailing list<br>
<a href="mailto:kwlug-disc@kwlug.org" target="_blank">kwlug-disc@kwlug.org</a><br>
<a href="https://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org" rel="noreferrer" target="_blank">https://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org</a><br>
</blockquote></div>