1

I am connecting to a linux machine exclusively over SSH. Recently I noticed that no matter what process is running in terminal, every time I close and reconnect through SSH the process may or may not still be running but I still get a fresh terminal instance over SSH and can't access the old one.

So this isn't the actual problem, because what I want is to be able to open another tab (or an equivalent) in the terminal my SSH connection already opened. So I can start e.g. a daemon there and switch to that tab to check on its status while I do different things in the main tab. Is there a possibility like this?

Note however: I connect from an SSH client on my Android phone. So I can't just open another tab there by typing xterm & or something similar that easily.

1

You will need a terminal multiplexing program, like screen or tmux to have more than one terminal session open on one connection.

Another benefit from those, is that the session remains if the connection gets interrupted.

https://www.gnu.org/software/screen/

https://tmux.github.io/

  • Yes, but they only are usable with a GUI aren't they? – Akito Apr 11 '17 at 8:41
  • No, these are CLI programs, so all you need is a terminal access. – Mioriin Apr 11 '17 at 8:43
  • Ah, okay, thanks. I am currently downloading tmux. – Akito Apr 11 '17 at 8:43
  • 1
    By the way, your distribution's repositories should have at least one of those programs available. Check your package manager, before manually installing anything. – Mioriin Apr 11 '17 at 8:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.