Table of Contents

How to reboot remote server via ssh



How to reboot remote server via ssh

#!/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


Refarence