#!/bin/bash ssh root@remote-ip "some-command > /dev/null; shutdown -r now &" ssh root@remote-ip "some-command > /dev/null; shutdown -r now" & $(ssh root@remote-ip "some-command; shutdown -r now") uname -a