restart remote server using ubuntu commands code example Example: How to restart Ubuntu via SSH? sudo service ssh restart