Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
How to regain access to droplet after losing public key and removing root ssh via password?
So, for security reasons I’m planning on disabling SSH via password, and only accepting SSH login via my public key by adding the following to my
So my question is…how do I regain access if I lose my public key? Can I re-enable SSH login via root with password if I login to my Droplet’s Console? Or is there some other way to accomplish this?
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.×