#! /bin/bash ssh user@server "nohup sudo poweroff &" & echo "Apagando..."