Hello,
I'm running a website on Apache2 ubuntu 18.04 and I was wondering how to block all ip addresses except for my public ip address for ssh. Trying to lock the server down as much as I can.
Block it with your firewall. I'm sure you have IP tables or can get something similar. Also make sure 1) SSH is up to date and 2) use public key instead of a password if possible. There are other options like IDS/IPS but simply blocking everything but your IP is your best bet.