Hacker News new | ask | show | jobs
by ygra 3071 days ago
Isn't it generally a bad idea to rely on everything (power, network, OS) to remain stable to keep an SSH session open, just so processes on the other end don't get terminated?
2 comments

Yes, that's what tmux and screen are for. You run one of them on the server and work within it, and then it doesn't matter what happens to the client or connection, your server processes are fine.
There's also mosh[0], as an SSH replacement that is designed to keep the session open regardless of how long you lose the connection.

[0] https://mosh.org/