When I’m already in an SSH session on the server, opening the WebGUI just to shut it down feels like a detour. Unraid has a short command for that.
Log in as root and run it:
ssh [email protected]
powerdown
The Unraid command line docs say it uses Unraid’s built-in shutdown process to stop the array and power down the system safely, and that it is preferred over manual shutdown methods. On a server with an array I reach for this instead of poweroff or shutdown -h now.
Your SSH session drops as soon as the server goes down. The terminal freezes for a moment and then disconnects, which is normal. To bring the machine back you need the power button, or a Wake-on-LAN packet if you set that up beforehand and your hardware supports it.
Nothing on the docs page mentions a confirmation prompt, so assume the command just runs. Check the hostname in your prompt before you press Enter, especially when you have terminals open to more than one machine. The same docs page lists the other built-in tools worth knowing, such as tail and top. To see what the server is doing before you shut it down, it shows tail -f /var/log/syslog for live system log output.
Further reading: Unraid docs: command line interface