Stop the OS for on-site hardware replacement.
Do not automatically restart the machine.
Which command matches the goal?
halt stops the system, while reboot restarts it. Depending on platform behavior, poweroff may be the command required to turn power off completely.
Detailed explanation
rebootIncorrect. reboot starts the system again after stopping it.
haltCorrect. halt transitions the OS to a stopped state without requesting a reboot.
sshIncorrect. ssh is a remote-login client.
exitIncorrect. exit terminates a shell rather than the operating system.
Try it yourself
An example you can run in a temporary verification environment.
halt --helpExpected result
haltの使用法。停止は実行しないKey points
- halt
- Difference from reboot
- Power state
Notes
- Environment: systemd systemctl互換halt
- Use a disposable VM or test account when validating installation and SSH behavior.
- Exact command output can vary slightly by distribution and OpenSSH version.
Foundation review
Identify the scope
SSH and shell-exit commands affect a connection or shell, not the operating system power state.
Check the side effect
Confirm the platform’s documented behavior when a physical power-off is required instead of an OS halt.