How to Switch Between SSH Sessions on Linux

Screen is a full-screen window manager that multiplexes a physical terminal between several processes (typically interactive shells). The same way tabbed browsing revolutionized the web experience, GNU Screen can do the same for your experience in the command line. Instead of opening up several terminal instances on your desktop or using those ugly GNOME/KDE-based tabs, Screen can do it better and simpler. Not only that, with GNU Screen, you can share sessions with others and detach/attach terminal sessions. It is a great tool for people who have to share working environments between work and home.

It is a nightmare when we have remote installation on Linux server with unstable internet connection or internet disrupted in the middle of installation. To solve this problem, we can use an utility called screen.

After we logged in to remote server using SSH, we run screen:

# screen

And then do our installation. If you disconnect from SSH, you can resume your work using this command:

# screen -r

Keywords:

  • screens

Leave a Reply

Your email address will not be published. Required fields are marked *