Report this

What is the reason for this report?

How do I keep my Minecraft Server running 24/7 without being connected via SSH?

Posted on September 14, 2017

I’m going to transfer my LAN server to a DigitalOcean Ubuntu server. How can I keep my server running without being logged into the SSH client all the time?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Using screen is great. On top of that, I’d also set it up so it starts on boot. Even if you use screen, if the server is shut down or rebooted, you’ll still need to enable the server again. Not really a boot script, but I added a screen command to my rc.local so it executes after boot. More details here

I wrote a post some time ago back in October 2015 on how to run a Minecraft server on Debian 8. You may find this useful? It is rather old now so I’m not completely sure how relevant it still is.

You’re looking for something like screen to keep the SSH session persistent. Context on these two commands below is given in the above link.

  1. sudo apt-get install screen
  1. screen ./run-minecraft-server.sh

There are other choices outside of screen but this should suffice.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.