Long-running commands stop if your SSH session closes unless they are managed by a service or terminal multiplexer. screen and tmux let you detach from a command and reconnect later.
Using screen
sudo apt install screen screen -S gameserver
Start your command inside the screen session. Detach with CTRL + A, then D.
Reconnect later with:
screen -r gameserver
Using tmux
sudo apt install tmux tmux new -s gameserver
Detach with CTRL + B, then D. Reconnect with:
tmux attach -t gameserver
For production services, a proper systemd service is usually better than leaving game servers in a manual screen session.
