Is it possible to deny access to a user (in my case
www-data) from outside the network? Or possibly deny this:
But allow this if already logged in:
Run following command.
I would suggest specifying only certain users that are allowed to log into the machine via ssh using