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 install several ssh keys when creating droplet through api
I’m setting up droplets via the API. in the create call I’m both adding an ssh key that’s already installed on DigitalOcean for logging into the droplet, and another third party ssh key to use for external communication.
The second one is added via the user data cloud init script.
When I use the call with only the login key it works. But when I add the init script the login key doesn’t work.
This means I can’t log into the droplet to debug. Any ideas what is going on?
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.×