I have an ubuntu system at home, allowed ssh and enabled port forwarding to my machine for ssh connections. So far so good.
Now I can access from everywhere. How do i confugure my machine to refuse any connection that is not from my laptop or my phone?
Should it be done from the router or from the machine's firewall? How do I do it?