How do I ssh into a DOKS node without restarting?

I have already set up an SSH Key in my account.

But it appears that droplets created by a DOKS node pool don’t get this key installed. Which means I can’t SSH into them without restarting the droplet (to reset the root password). This is a deal-breaker for me because when things go wrong, I need to be able to run perf (which I can’t from inside the container).

How can I SSH into my DOKS droplet without restarting it?

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.

Purnima Kumari
DigitalOcean Employee
DigitalOcean Employee badge
May 29, 2023

Hi @juancampa

Nodes are (usually) short lived, and we deliver the nodes as part of our Kubernetes as a service product (DOKS), we don’t provide a way to access the Droplets over SSH. You can deploy doks-debug pod to have access to the set of tools which will be helpful for troubleshooting purpose.

I hope this helps !

Best, Purnima Kumari

Bobby Iliev
Site Moderator
Site Moderator badge
May 27, 2023

Hi there,

Indeed, it’s correct that Droplets created by DigitalOcean Kubernetes Service don’t get user’s SSH keys installed. This is by design because the DOKS nodes are intended to be managed through the Kubernetes API, not directly via SSH.

Can you give some more information on why you need to SSH to a worker node?



Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel
Get started for free

Enter your email to get $200 in credit for your first 60 days with DigitalOcean.

New accounts only. By submitting your email you agree to our Privacy Policy.

© 2023 DigitalOcean, LLC.