If you use a laptop tucked away as a Linux host, you may want to disable any power manegement (sleep/hibernate) as well as any desktop environments, use this script:
wget -qO- https://gist.githubusercontent.com/lbussy/2884187dcad127b1b9ad3bbeb5697d90/raw/disable_power_and_gui.sh | sudo bash
If you wish to reverse it: