Does removing public SSH key protect my website?

Hi, I had worked with a developer, granting him public SSH key to my droplet.

  1. Now that our work is completed, with me removing the SSH key, does this mean that he could no longer access any of my website data and database through the droplet?
  2. I also found that I do not know ‘root password’ and so I request for a reset of that (with Digital Ocean notifying me that the reset link or something has been emailed to me) - do I have to worry if anyone (like my developer) could break into my website?

*noob question I know, as I’m a non developer/non technical person. Thanks in advanced

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

  1. Am I to understand correctly that what I did, i.e. removing the public SSH key under settings/security doesn’t help unless I also remove it manually through the authorized_keys file? How can I assess this file? *am asking as I’m a total non technical person
  2. I reckon there’s no way to check for this, innit?
  1. No, you need to SSH in to remove it from the authorized_keys file.
  2. Yes, if he had malicious intends from the beginning he could have installed a backdoor.