I’m running a headless linux server which I’ve ssh’d into. Now that only gives me 1 terminal to work with, and I can startup a minecraft server with a .sh script. But if I close that ssh terminal, how would I get access to the same .sh script that is still running in the background. Because if I reconnect with ssh again, it opens a fresh terminal.
You could use tmux.
When you ssh to the server for the first time, you could start a tmux session:
And then run your
When you close the ssh terminal and reconnect with ssh again, you can attach the previous tmux session with:
tmux a -t 0
You could access to the same running
Answered By – ramsay