I’ve been using mosh for around a year now
and find it very handy for interactive ssh sessions from my laptop.
It’s even handy from desktops or servers if you have a spotty
However, I have noticed one issue. You’ll get a buildup of
mosh-server processes on the machine(s) you
mosh into if
mosh sessions tend to end uncleanly - if the client
dies while not connected to the
This is bug number 12
mosh and there really isn’t a satisfactory answer to it.
Not the devs fault, it’s just a hard problem and any solution
will have poor edge cases and/or security issues.
Still the cron solution of killing old servers after X days (from
experience I’d say 2 weeks, but those who travel more might want longer)
seems like a good compromise. The server processes don’t really take up
much space. I first noticed the issue a few days ago and there were about
mosh-server processes on the machine from the past six months.
No real affect on load.
Still, if you tend to do things that will strand those server processes
it would actually add up.