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