I am making a website and I am using a droplet made in digital ocean as my dev server. (No stg or prd yet)
The problem is that I am using Dynamic IP and if I blocked access on port 22 to my current IP, I would not be able to access my server due to IP change. Only way to recover access is to use web console that Digital Ocean provides.
Currently this is not a big problem but I understand that opening port 22 port to all IP is a very dangerous practice and I like to avoid this.
Is there any way I can improve the security of my server's SSH port?
All I can think of is limiting login tries (e.g. more than 3 failed attempts, block IP) and using a Key.