• Restart SSH
sudo service sshd restart

or

sudo service ssh restart
  • Restart Apache
sudo service apache2 restart