Execute the following command:
sudo service ssh restart
Alternatively use the old-fashioned method to restart the service:
sudo /etc/init.d/ssh restart