Losing ssh connection during apt upgrade
Liam Proven
lproven at gmail.com
Sat Jan 30 12:08:35 UTC 2021
On Sat, 30 Jan 2021 at 00:29, Karl Auer <kauer at biplane.com.au> wrote:
>
> Not sure I agree that screen wasn't designed for this kind of thing,
> but if you say so...
Full disclosure disclaimer type thing: I am very happy to say that
these days, I do not administer any remote *nix boxes of any form
anywhere, either for work or for play. The closest is my little RasPi
4 home NAS server.
So I have not and do not personally use any of this stuff.
AIUI:
• the purpose of `screen` is to detach shell sessions, leaving a
program or session running in the background so that you can re-attach
to it later from a different terminal session. Maybe locally, maybe
remotely, whatever.
As it happens, this is handy if you are remote and you might get disconnected.
• the purpose of `mosh` (MObile SHell) is the assumption that you are
routinely connect to machines remotely, over links that might not be
reliable, that might be dropped and re-established over different
channels or from different IP addresses, and it tries to be a remote
terminal session that can tolerate interruptions, line drops,
slow-downs etc. and keep you connected.
The latter seems more like the usage case being discussed here -- of
trying to upgrade a remote server which might drop the session. No?
Mosh replaces your local ssh client, but you can certainly use it
along with screen or whatever if you wish.
> Nice find, I will definitely try it out. It sounds especially good for
> real-time roaming. Have you tried the local echo feature?
I haven't tried it at all, TBH. I remember it being discussed in a few
places, some years ago, and many people went "oh, that sounds really
handy!" and I know people who've switched to using it and find it
handy.
I was able to understand the use-case and appreciate it.
Other people, for instance, swear by BYOBU. I've seen people using it,
I know people like it. I've read about it and I did not really get
what it might bring me. Largely ditto screen, TBH. I tried them,
thought "huh, fair enough" and never normally use either.
I have a machine at the office, so off for 10 months now, that I run
tmux on and that I find useful. Tmux is a sort of tiling window
manager for the text console. The machine is a text-only box intended
to run VMs. Normally I ssh into it, but it's handy to have the actual
screen showing 4-5 different monitoring screens and consoles at once,
so I can see what it's doing at a glance.
> I'm old
> enough to have used actual terminals
Me too. :-)
> and local echo was always a
> disaster, but perhaps with the predictive underlining it is more
> usable.
True!
--
Liam Proven – Profile: https://about.me/liamproven
Email: lproven at cix.co.uk – gMail/gTalk/gHangouts: lproven at gmail.com
Twitter/Facebook/LinkedIn/Flickr: lproven – Skype: liamproven
UK: +44 7939-087884 – ČR (+ WhatsApp/Telegram/Signal): +420 702 829 053
More information about the ubuntu-users
mailing list