DaBoat
DaBoat

Reputation: 1

How to make SSH in Google cloud keep running after closing the browser whilst running a .exe-file?

I’m running a gameserver, more specifically a Terraria server on GCP. When I run ./TerrariaServer.bin.x86_64 (exe-file) I have to input some settings for the server to run. Hence, nohup and & have not worked for me to keep the server running after I close the SSH-terminal. Any suggestions on how to achieve this?

Upvotes: 0

Views: 1740

Answers (1)

John Hanley
John Hanley

Reputation: 81454

Do not use hohup for SSH sessions. The program will be terminated when the SSH session ends.

Instead use programs like screen or tmux.

Techniques to Keep SSH Session Running After Disconnection

Upvotes: 3

Related Questions