Question

How can I verify if my SSH keys are working?

I added the SSH key through the security section of my Digital Ocean account. However, when I log in remotely using Terminal in my mac, I am being asked for the password.

How can I tell if the key is working correctly?


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.

Hi @georodrigues,

If you are being asked for your Password, if would mean the SSH key is not working properly.

Now, I do have one question, did you add the SSH key and then created your droplet by selecting the said SSH key or did you add the key after you’ve created the droplet?

If you did the latter, the SSH key won’t work, it would need to be added to your Droplet. If you are unaware how to do so, you can check the following two articles

https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys-on-ubuntu-1804

https://www.digitalocean.com/docs/droplets/how-to/add-ssh-keys/

Both should help you with adding the key to your droplet.

Regards, KDSys