ubuntu command restart server code example
Example 1: how to restart the network in ubuntu
$ sudo service network-manager restart
Example 2: How to restart Ubuntu via SSH?
sudo service ssh restart
$ sudo service network-manager restart
sudo service ssh restart