Forrest logo
back to the ssh tool

ssh:ai:8e7c4

How can i send a shutdown command with ssh?
$ ssh user@hostname shutdown -h now
try on your machine

This command will use SSH to connect to the specified hostname as the specified user and execute the 'sudo shutdown -h now' command to initiate a shutdown of the system immediately.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.

Questions that are answered by this command:

  • How can i send a shutdown command with ssh?
back to the ssh tool