Skip to content

Don't stop my ssh sessions

Problem

When you work on an ssh shell for a long time, you may find that your remote connection was disconnected and no work is done!!!!

Solution

  • Use screen: this is a traditional tool that you can find in most unix environments.Link

  • Use tmux: this is an advanced version of screen with many more functions. Link

  • Use mosh: this is a mobile shell. It will keep your connection even though your internet is down and up or you change your IP address. mosh should be installed in both client and server. Be careful: If you close a window, there is no way to reconnect to your stale sessions. Link