I have an admin panel on my site, that enables me to control the content on my website. In order for the admin panel to achieve this, I must have a connection to the site's database.
I have two options for setting up my admin panel:
- Have the admin panel running on WAMP on my local PC, and SSH to the database on my server
- Host the admin panel on my server, meaning that I do not have to remotely SSH to my database
If I host it online, I can whitelist my IP to restrict access. If it's on my local PC, I will be the only person accessing it too. Hosting my admin panel on my server seems to be far more prone to attackers due to publicity; however I don't know for sure if that is true or not.
Which is more secure, and why?