4 ms·
For remote SSH, I like to use an .ssh/config setting for the remote host and automatically start a remote tmux. Saved my work a few times from spotty connection
by idatum 2y ago
For remote SSH, I like to use an .ssh/config setting for the remote host and automatically start a remote tmux. Saved my work a few times from spotty connections from my laptop tethered to my phone. Something like this:
Host t-sdf
HostName sdf.org
User idatum
RemoteCommand tmux new -A -s mylaptop
RequestTTY yes
Then log in with
ssh t-sdf
and tmux is happily running a session named "mylaptop". Connecting again gets you back to the same tmux session.
I use tmux daily and I haven't found a reason to switch.