How to restart Ubuntu via SSH? code example Example: How to restart Ubuntu via SSH? sudo service ssh restart